In headscarf ruling, EU court allows religious symbol bans