It ruled that Erdogan 's legislation , passed in February , allowing women attending state universities to wear head scarves in observance of their Muslim beliefs violated secular principles enshrined in the Constitution .