She had been barred on the grounds that her headscarf would violate the state 's neutrality in religion .