The French government's controversial ban on the abaya in schools was upheld on Thursday by the top administrative court, which rejected complaints that the move was discriminatory and could incite hatred.
President Emmanuel Macron's government announced last month it was banning the loose-fitting, full-length robe generally worn in Arab countries in schools on the ground that it broke the rules on secularism in education.
The decision drew criticism and mockery, while it was applauded by French conservatives.
In 2004, France introduced a controversial headscarves ban at schools before banning full-face veils in public in 2010, angering some in its millions-strong Muslim community.
An association representing Muslims filed a motion with the State Council, France's highest court for complaints against state authorities, for an injunction against the ban on the abaya and the qamis, its equivalent dress for men.
The association said the ban was discriminatory and could incite hatred against Muslims, as well as racial profiling.
But after examining the motion – filed by the Action for the Rights of Muslims (ADM) – for two days, the State Council rejected the arguments.
It said wearing the abaya "follows the logic of religious affirmation," adding that the decision was based on French law which did not allow anyone to wear visible signs of any religious affiliation in schools.
The ban by the government did not, it said, cause "serious or obviously illegal harm to the respect for personal lives, freedom of religion, the right to eduation, the well-being of children or the principle of non-discrimination."
Ahead of the ruling, France's Council of the Muslim Faith (CFCM), established to represent Muslims before the government, had warned that banning the abaya could create "an elevated risk of discrimination" and said it was considering putting its own complaint before the State Council.
The absence of "a clear definition of this garment creates vagueness and legal uncertainty," it said.
ADM's lawyer, Vincent Brengarth, argued during the court hearing that the abaya should be considered a traditional garment, not a religious one.
He also accused the government of seeking political advantage with the ban.
ADM president Sihem Zine said the rule was "sexist" because it singles out girls and "targets Arabs."
But the Education Ministry said the abaya made its wearers "immediately recognizable as belonging to the Muslim religion," and therefore ran counter to France's secular culture.
French schools sent dozens of girls home for refusing to remove their abayas on the first day of the school year on Monday.
Nearly 300 schoolgirls defied the ban, Education Minister Gabriel Attal said.
Most agreed to change garments but 67 refused and were sent home, he said.
In 2016, the State Council overturned a ban in a French Riviera resort against the burkini, saying it failed to see any threat to public order from the full-body swimsuit worn by some Muslim women.
Around 10% of France's 67 million inhabitants are Muslim, according to official estimates.
Most have origins in Northern African countries Algeria, Morocco and Tunisia, which were French colonies until the second half of the 20th century.