Headscarves can be banned at work, European court rules