BOSTON — Massachusetts voters have supported a state law that protects transgender people from discrimination in public accommodations, including bathrooms and locker rooms.

The yes vote on the ballot question Tuesday rejects an effort by opponents to repeal the 2-year-old law. It was the first statewide referendum in the U.S. on transgender rights.

Supporters of the law feared a vote to repeal would prompt a wave of similar efforts to roll back protections in other states. Massachusetts was the first to legalize gay marriage and is viewed as one of the most LGBT-friendly states.

Critics say the 2016 law allows sexual predators to invade private spaces for women by claiming female gender identity. No such incidents have been reported in Massachusetts since the measure took effect.

More From WBSM-AM/AM 1420