Your Nike shoes example is one of the reasons why some schools have uniforms. No class differences, everyone the same. It does seem to help.
Even without uniforms, schools can have all sorts of rules, banning sports shoes, shirts without sleeves, etc... I don't see why banning head scarfs is such a big deal in that context.