The Portuguese government passed a decree on Thursday reinstating the granting of so-called “golden visas” for wealthy foreigners, after they were frozen earlier this month following a corruption scandal.

Since the end of 2012, Portugal has been granting the special visas to foreigners who are ready to shell out at least €500,000 for a house or apartment, make a capital transfer of one million euros, or create 10 jobs.

But the visas were frozen when a legal vacuum emerged after a new immigration law went into effect on 1 July. The law repealed several provisions relating to the “golden visas”, but did not replace them with others.

Earlier this month Portuguese prosecutors said they planned to charge former interior minister Miguel Macedo for his role in a money-laundering scandal involving the “golden visas” that also implicated the former head of border police.

“It would be a shame if Portugal misses out on investments from other countries because of the turmoil created by a court case,” government spokesman Luis Marques Guedes said Thursday, after announcing the new decree.

In order to end the freeze, President Aníbal Cavaco Silva must publish the decree.

Chinese nationals, followed by Brazilians and Russians have been the top recipients of the visas.

As of late June, Portugal counted 2,420 “golden visas” had been issued and had brought €1.46bn of investment into the country.