Brighton beat Leeds to all but secure Premier League safety