The policy would have allowed teachers to not share a student's gender expression with their parents.