Top European court rules companies can ban Islamic headscarf