Jonathan Drake/Reuters North Carolina Gov.-elect Roy Cooper (D) said the state GOP leaders in the legislature have promised to repeal HB2.

North Carolina Gov. Pat McCrory (R) has called for the state legislature to meet in a special session Wednesday to take up the repeal of HB2, the controversial law that barred anti-discrimination protections for lesbian, gay, bisexual and transgender individuals.

The announcement came in response to the Charlotte City Council’s surprise unanimous vote Monday morning to rescind its ordinance providing LGBT protections. The council passed its ordinance in February, which angered the GOP-controlled legislature and prompted it to pass a law invalidating the measure.

HB2 barred cities and localities from enacting anti-discrimination policies that protect people on the basis of sexual orientation and gender identity; it also prevented schools from allowing transgender students to use the restroom that corresponds with their gender identity, rather than the gender assigned to them at birth. It essentially invalidated Charlotte’s ordinance.

Charlotte Mayor Jennifer Roberts (D) and city council members had rejected a similar deal earlier in the year, according to the Charlotte Observer. But the situation has now changed, with Roy Cooper ― a Democrat who supports LGBT rights ― set to take over the governorship.

Roberts argued that the vote Monday morning “should in no way be viewed as a compromise of our principles or commitment to non-discrimination,” and said she viewed the new opportunity as the first real chance to repeal HB2.

Cooper first announced news of the special session Monday morning, saying that GOP leaders assured him they would meet this week.

My statement on today's Charlotte City Council vote: pic.twitter.com/qNN8pmvSjv — Roy Cooper (@RoyCooperNC) December 19, 2016

In a video message Monday afternoon, McCrory announced his plans for the special session and blasted Cooper and Roberts.

“I have always publicly advocated a repeal of the overreaching Charlotte ordinance,” McCrory said. “But those efforts were blocked by Jennifer Roberts, Roy Cooper and other Democratic activists. This sudden reversal with little notice after the gubernatorial election has ended sadly proves this entire issue, originated by the political left, was all about politics at the expense of Charlotte and the entire state of North Carolina.”

In a joint statement, state Senate Leader Phil Berger (R) and House Speaker Tim Moore (R) echoed McCrory, saying they were always prepared to consider repealing HB2 if Charlotte rescinded its ordinance. They also criticized Cooper for taking credit for their decision, saying his and Roberts’ “efforts to force men into women’s bathrooms and shower facilities was a political stunt to drive out-of-state money into the governor’s race.”

“For months, we’ve said if Charlotte would repeal its bathroom ordinance that created the problem, we would take up the repeal of HB2,” they said. “But Roy Cooper is not telling the truth about the legislature committing to call itself into session ― we’ve always said that was Gov. McCrory’s decision, and if he calls us back, we will be prepared to act. For Cooper to say otherwise is a dishonest and disingenuous attempt to take credit.” Charlotte’s ordinance does not “force men into women’s restrooms.”

Cooper’s Monday morning statement indicates that he may push for statewide protections for sexual orientation and gender identity when he takes office. And Charlie Reece, a Democratic member of the Durham City Council, said he expects cities may pass new nondiscrimination ordinances of their own after the legislature repeals HB2 ― although he added that he was troubled by the “deal” and how it would affect the transgender community.

Assuming that HB2 is repealed tomorrow, and assuming that the repeal leaves NC law where it was before HB2, cities and towns across NC… — Charlie Reece (@CharlieReece) December 19, 2016

“LGBT rights aren’t a bargaining chip. Charlotte shouldn’t have had to repeal its ordinance in exchange for H.B. 2 to be repealed,” said Simone Bell, the southern regional director for Lambda Legal. “LGBT people in North Carolina still need protection from discrimination. The right action is for the North Carolina Legislature to pass a statewide comprehensive civil rights bill that includes full protections for LGBT people,”

The backlash to HB2 has been fierce, causing headaches for GOP leaders who supported the law. PayPal scrapped plans to expand its business to Charlotte, resulting in a loss of 400 jobs for the city and state. Business leaders spoke out against the law, and sports and entertainment events were pulled from the state in protest.

The NCAA pulled seven of its championship games from North Carolina after the state passed HB2. In a statement Monday, it said it was heartened to see that the law may be repealed and would be open to possibly hosting future events in the state again.

NCAA statement provided to @USATODAYsports on report that NC legislature working to repeal HB2. 2016-17 events to remain in new cities. pic.twitter.com/n3SKzhh5J9 — Nicole Auerbach (@NicoleAuerbach) December 19, 2016

In November, Cooper defeated McCrory, whose loss was attributed in large part to the heat he took over HB2. McCrory conceded on Dec. 5, after a month of wrangling and raising unproven theories about fraud and other problems.

In response, the GOP-controlled legislature pushed through legislation to take away powers from the incoming Democratic governor. McCrory signed the bills last week.

This piece has been updated with additional comments and details about the special session.

Want more updates from Amanda Terkel? Sign up for her newsletter, Piping Hot Truth, here.