The only federal rule on dress code is they can’t be discriminatory based on sex, race, religion.

so for example you can’t refuse to let a boy wear a dress because he is a boy.
you need to find another reason.