An attempt to repeal North Carolina’s transgender bathroom law during Wednesday’s special daylong session of the state legislature failed, and state lawmakers headed home for Christmas with the controversial law still on the books.

After nine hours of debate, the state Senate voted down a bill introduced by the chamber’s top Republican to repeal the Public Facilities Privacy & Security Act (HB2).

HB2 requires that all individuals use restrooms in schools and other public facilities that correspond to the sex listed on their birth certificates. The law was passed in March, a month after the City of Charlotte passed an ordinance allowing transgenders to use the bathroom of their choice instead of one that corresponds to their biological sex.

The repeal bill was killed by pro-HB2 Senate Republicans and Democrats who opposed it because it included a “cooling-off period” in which local governments were prohibited from passing regulations or ordinances regarding “public accommodations or access to restrooms, showers, or changing facilities”.

The House did not vote on the legislation, so the General Assembly adjourned until January 11th.

“I’m disappointed that we did not remove the stain on our great state,” Governor-elect Roy Cooper, a Democrat, said after brokering a deal with the Republican-led legislature to repeal HB2 if the City of Charlotte, whose transgender bathroom ordinance triggered the law’s passage, repealed its ordinance first.