Professor can't be punished for not using transgender student's pronouns, appeals court rules