Yeah, that is how you actually let people decide to wear what they want. Afaik Spain also doesn't have burqa ban or anything similar (at least not in general, there may be rules in special cases).
I'm just always a bit annoyed when US-Americans criticise it when European countries ban certain clothing. They have rather draconian laws at home as well. And of course we're talking about schools here, hence school uniforms provide another relevant and rather widespread example of infringements on clothing-freedom.