Muslim teachers can wear headscarves in German schools, court says