Hard to be upset about it. It’s a government school after all - and THEY get to set the rules. If parents don’t like it, they can find other schools.
Constitutional rights don’t stop at the door of any school.