North Carolina Gov. Roy Cooper (D) on Thursday signed into law legislation to repeal a controversial law that bars people from using the restroom that corresponds with their gender identity and adds provisions to block nondiscrimination protections. The compromise on HB2, which the House and Senate passed Thursday, was quickly criticized by LGBTQ groups.

“The initiative is not a repeal,” Chris Sgro, executive director of Equality NC, said before the Thursday votes. “It’s doubling down on the discrimination that HB2 exacts ― it’s HB2.0.”

“It doesn’t do anything to better the lives of LGBT North Carolinians,” he continued.

HB2 was signed into law last year and led to widespread backlash against the state. The compromise, which was announced late Wednesday and quickly pushed through both chambers of the legislature Thursday, repeals the law but still allows ample room for discrimination.

The bill lawmakers voted on Thursday includes some portions from HB2, including prohibiting municipalities from passing any ordinance regulating private employment or public accommodations. In the compromise, this prohibition extends until 2020. In other words, not only would cities be barred from passing their own nondiscriminat ion protections for LGBTQ people, but they also wouldn’t be able to enact measures raising the minimum wage or protecting workers.

Josh Stein, the state attorney general, said lawmakers should have done a “clean repeal” of HB2.

“While this is an improvement over current law, a clean repeal of HB2 would have been the right thing to do. Local governments should be able to protect their people from discrimination,” he wrote on Facebook.

The City of Charlotte said it was pleased with the law pushed through Thursday, noting HB2 had harmed businesses and economic growth in the city. It announced the city’s discrimination ordinance would return to the way it was before Feb. 22, 2016, when Charlotte added LGBTQ protections to its nondiscriminati on ordinance. That addition led to the passage of HB2.

Charlotte Mayor Jennifer Roberts said she was “disappointed that the Republican leaders in the General Assembly continue to see LGBT people as unequal and refuse to let cities like Charlotte govern themselves.”

The push for the deal was tied to a deadline set by the NCAA. The group said last week that it would continue to not hold events in the state because of the law, and a sports event recruiter said Tuesday that the organization had threatened to drop North Carolina’s bids from consideration if the legislature hadn’t addressed the law in the next 48 hours. The NCAA is set to announce host cities for its postseason events through 2022 on April 18.

“Once the sites are selected … those decisions are final,” the NCAA said.

It’s unclear whether Thursday’s compromise law will satisfy the NCAA, which said its board of governors will decide by next week whether to include North Carolina among the hosts.

The Atlantic Coast Conference, another sports group that had boycotted North Carolina after the passage of HB2, said Thursday evening that it would “reopen the discussion” with its council of presidents regarding future events in the state.

ACC commissioner John Swofford statement on HB2/HB142: pic.twitter.com/oEkPqSrj6b — Luke DeCock (@LukeDeCock) March 30, 2017

The Associated Press calculated this week that HB2 would cost the state over $3.7 billion over 12 years from lost business.

Leading up to lawmakers’ votes Thursday, LGBTQ advocates pushed against the compromise.

“North Carolinians want a clean repeal of HB2, and we urge our allies not to sell us out,” Sgro said. “Those who stand for equality and with LGBTQ people are standing strong against these antics. We’ve got less than 24 hours before the NCAA deadline. There is no time to waste ― our leaders must fight for what’s right, and that is full repeal.”

Dr. William Barber II, president of the North Carolina chapter of the NAACP, called the bill a “bait and switch.”

Chad Griffin, president of the Human Rights Campaign, pushed legislators to avoid being “sellouts” in a statement released Wednesday evening.

“The consequences of this hateful law will only continue without full repeal of HB2,” he said. “Sellouts cave under pressure. Leaders fight for what’s right.”

“Passing this bill would mean that North Carolina continues to be one of the very few states where it’s illegal for cities to protect the rights of their residents,” Mara Keisling, executive director of the National Center for Transgender Equality, said earlier Thursday.

Simone Bell, Lambda Legal’s Southern regional director, said the deal was just a “quick fix.”

“There can be no compromise on civil rights, and HB2 has proven this over the last year,” she said. “This so-called ‘deal’ may be an economic quick fix, but it continues to write discrimination into the law. A deal that leaves out LGBT North Carolinians, and particularly transgender people, should be no deal at all. It is shameful to stamp a start date on equality. Lawmakers should demand a full, clean repeal, and enact comprehensive nondiscriminat ion protections and not leave our community unprotected in the name of ‘compromise.’”

In a statement Wednesday, the governor said the bill wasn’t perfect, but it was a start.

“It’s not a perfect deal, but it repeals House Bill 2 and begins to repair our reputation,” Cooper said.

But Sarah Gillooly, policy director for the ACLU of North Carolina, called the deal “disgraceful” and, before Thursday’s votes, urged the governor to reconsider.

“Lawmakers must vote against this proposal, and should it reach his desk, Governor Cooper should withdraw his support and veto it,” she said.

Former Gov. Pat McCrory (R), who signed the bill last year, said he supported the compromise.

“I urge the Generally Assembly and the current governor to finally stick with an agreement that is a common-sense reset that respects privacy and allows the Supreme Court to resolve this issue for our nation once and for all,” McCrory wrote on Facebook. “How our country legally defines gender ultimately will not be decided by any mayor, governor, state legislature, or university chancellor on the board of the NCAA.”

Lawmakers came close to repealing HB2 in December of last year but the effort failed, in part because it barred local municipalities from passing their own nondiscriminat ion ordinances for a six-month period.

This article has been updated through the day with new details and comments.