The ruling was made in the cases of two women - in France and Belgium - who were dismissed for refusing to remove hijabs, the headscarf worn by many Muslim women who feel it is part of their religion.