HOUSTON — A yearlong battle over gay and transgender rights that turned into a costly, ugly war of words between this city’s lesbian mayor and social conservatives ended Tuesday as voters easily repealed an anti-discrimination ordinance that had attracted attention from the White House, sports figures and Hollywood celebrities.

The City Council passed the measure in May, but it was in limbo after opponents succeeded, following a lengthy court fight, in putting the matter to a referendum. The measure failed by a vote of 61 percent to 39 percent.

Read more in The New York Times.