Teachers, staff, and classmates aren’t required to use students’ pronouns or names if they don’t align with the student’s sex assigned at birth, according to legislation passed in at least 10 states.