Austrian MPs on Wednesday approved a law aimed at banning the headscarf in primary schools, a measure proposed by the ruling right-wing government.

The text refers to any “ideologically or religiously influenced clothing which is associated with the covering of the head”.

Representatives of both parts of the governing coalition, the centre-right People’s Party (OeVP) and the far-right Freedom Party (FPOe), have made it clear that despite its wide description, the law is targeted at the Islamic headscarf.

The FPOe education spokesman, Wendelin Moelzer, said the law was “a signal against political Islam” while OeVP MP Rudolf Taschner said the measure was necessary to free girls from “subjugation”.

The government said the patka head covering worn by Sikh boys and the Jewish kippa would not be affected.

Austria’s official Muslim community organisation IGGOe has previously condemned the proposals as “shameless” and a “diversionary tactic”. It says that in any case only a “minuscule number” of girls would be affected.

Opposition MPs almost all voted against the measure, with some accusing the government of focusing on garnering positive headlines rather than child welfare.

The government admits that the law is likely to be challenged at Austria’s constitutional court, either on grounds of religious discrimination or because similar legislation affecting schools is normally passed with a two-thirds majority of MPs.