A federal court weighs the case of a teacher who refused to use students' chosen names and pronouns, as similar questions arise elsewhere.