The New Hampshire Supreme Court has upheld a school district’s policy aimed at supporting the privacy of transgender students