The rights group had gone to court over the previous government's requirement that students under 16 receive parental consent before teachers could use their preferred pronouns.