Tens of thousands of protesters took to the streets of Bucharest and other Romanian cities on Friday, blowing whistles, waving giant national flags and booing at giant puppets of politicians they hold responsible for a decree to dilute the country’s anti-corruption fight.

People of all ages, some carrying children, took part in protests around the country for the fourth consecutive evening. The atmosphere was one of anger against the government, but also of solidarity and hope for change. Some carried banners saying: “I came for my future.”

The demonstration came amid a deepening political crisis after two key government allies said on Friday that the emergency government decree passed early on Wednesday without input from parliament was not constitutional. The influential Romanian Orthodox church criticised the measure, which some say will allow corrupt politicians to escape punishment.

Late on Friday, the general prosecutor Augustin Lazar asked the Bucharest court of appeal to suspend and cancel the government decree “in an emergency regime” before it formally becomes law on 9 February.

Ombudsman Victor Ciorbea, who previously backed the government’s ordinance, reversed his position on Friday, saying he would tell the constitutional court that the decree to decriminalise official misconduct under a certain dollar amount was “not justified.” He said the measure risked “taking out of the reach of criminal law almost all the public administration”.

A parliamentary party that formally supports the government, the Union of Democratic Hungarians in Romania, also criticised the government on Friday, saying that criminal law should not be modified through emergency decrees, but through parliamentary debate.

In another setback for the government, the Orthodox church, to which more than 85% of Romanians belong, said that the anti-corruption fight should continue and that those found guilty should be sanctioned.

“Robbery and theft degrade society morally and materially,” the church said.

The justice minister, Florin Iordache, said he stood by the law, defying strong criticism from home and abroad and days of protests.

The ruling centre-left Social Democratic party has defended the decree, which has sparked some of the biggest protests since the 1989 fall of communism. Its leader, Liviu Dragnea, who has been blocked from becoming prime minister because of a vote-rigging conviction, is among those expected to benefit from the decree.

Romania’s constitutional court will on Tuesday rule on the legality of the law, the last legal resort to stop it.

Speaking on Friday at a European Union summit in Malta, President Klaus Iohannis said he trusted the protesters more than the government.

“We have hundreds of thousands of my Romanians out on the streets and I trust them,” Iohannis said. “I believe in Romania. European values have to prevail and this is what I believe will happen.”

US state department spokesman Mark Toner said the US was “deeply concerned” about recent government decrees that “that undermine rule of law and weaken accountability for financial and corruption-related crimes”.