The law prohibited transgender people from using restrooms in accordance with their gender identities.