They say the decision was made to comply with a California law that protects students' gender identity and expression.