The government dictating what I can and cannot wear is infinitely more problematic than a religion doing the same. I can quit a religion if I don’t like their rules. I cannot “quit” the government.
The hijab ban is evidence of excessive governmental intrusion on the individual.