Germany’s lower house of parliament, the Bundestag, on Friday voted to ease the law on naturalization and widen access to dual citizenship.

The German government says the law should help make Germany more attractive to skilled workers internationally, helping to ease stifling labor shortages.

Chancellor Olaf Scholz’s Social Democrats, the Free Democrats and the Green Party, which make up the ruling coalition government, voted for the legislation.

The opposition conservative Christian Democrats (CDU) and Christian Social Union (CSU) opposed the bill, along with the far-right Alternative for Germany (AfD).

From the 639 votes cast, there were 382 yes votes and 234 no votes, with 23 abstentions.