Because of a tik toc trend, my sons school closed all the bathrooms. Is this legal?

reddit: the front page of the internet 2021-09-18