North Carolina's controversial Bathroom Bill was repealed by the state's Senate on Thursday, ending a restriction that requires transgender people to use public bathrooms that correspond with their birth gender, rather than the gender they identify with.

The bill was expected to cost the state $3.7 billion in lost business over several years. Performers and businesses were boycotting the state in protest of the law.

The year old law, the only one that existed in the U.S., was met with serious backlash when first proposed.

Late Wednesday night, Republican legislative leaders said they reached a compromise with Democratic Governor Roy Cooper, and after a brief floor debate Thursday the Senate approved a three part proposal repealing the House Bill 2 law, Reuters reports. New provisions in the reworked law still ban local municipalities, schools and others from regulating bathroom access.

The revision's next stop is the state House of Representatives and then to the governor's desk.