State Republican lawmakers in Norht Carolina late on Wednesday said they had reached a deal to repeal the state's law prohibiting transgender people from using restrooms in accordance with their gender identity.

Details of the compromise measure were not released, but the measure was set for a vote Thursday morning, state Sen. Phil Berger and General Assembly Speaker Tim Moore said in an impromptu news conference Wednesday night.

Gov. Roy Cooper said in a statement Wednesday night: "I support the House Bill 2 repeal compromise that will be introduced tomorrow. It's not a perfect deal, but it repeals House Bill 2 and begins to repair our reputation."

Business Insider's Mark Abadi previously reported the NCAA had imposed a 48-hour deadline on North Carolina to repeal the so-called bathroom bill or risk losing postseason collegiate sporting events from the state over the next five years.

The law was passed in North Carolina a year ago. It requires people to use bathrooms that align with the gender on their birth certificate.

The NCAA threatened to reject North Carolina's bids to host more than 100 events if the state failed to repeal HB2. The ultimatum was revealed in a statement from Greater Raleigh Sports Alliance's executive director, Scott Dupree, about noon on Tuesday.

Losing out on the NCAA bids would have cost North Carolina nearly $4 billion in revenue, according to an Associated Press estimate published earlier this week.

The NCAA said in a statement that HB2 did not allow for "a safe, healthy, discrimination-free atmosphere for all those watching and participating in our events." The NCAA last summer had already relocated numerous sporting events from North Carolina last summer because of the law.