North Carolina's Republican-controlled legislature on Wednesday rejected a bid to repeal a state law restricting bathroom access for transgender people, which has drawn months of protests and boycotts by opponents decrying the measure as discriminatory.

A one-day special legislative session ended abruptly after the state Senate voted against abolishing a law that has made North Carolina the latest U.S. battleground over lesbian, gay, bisexual and transgender (LGBT) rights.

The repeal legislation was rejected 32-16, leaving the bathroom restrictions in place statewide. The rejection followed Republican-led political maneuvering that tried repeal to a second provision that would have temporarily banned cities from affirming transgender bathroom rights.