RALEIGH, N.C. (AP) — North Carolina legislators have passed a bill that prevents local governments from setting their own anti-discrimination rules.

The Republican-controlled General Assembly took action Wednesday in a special session after the Charlotte City Council recently approved a broad anti-discrimination measure that allows transgender people to use the restroom aligned with their gender identity.

The Senate voted for the measure hours after the House passed it by a wide margin. It now goes to Republican Gov. Pat McCrory’s desk. His office didn’t immediately respond to requests about whether he will sign the measure.

An enacted bill would be a blow to the LGBT movement after success with similar anti-discrimination measures in more than 200 cities nationwide.