Perhaps U.S. Supreme Court case Tinker vs. Des Moines Independent School District

… schools may limit student expression (such as dress codes) if such expression will be disruptive to the learning environment or violate the rights of others.