The law requires people to use bathrooms and locker rooms in public schools and government-owned buildings that match their sex assigned at birth.