EU's human rights court endorses Turkish headscarf ban