Ukraine’s government faced pressure from protesters and foreign backers after attempt to take away power from agencies.

Ukraine’s parliament has voted to restore the independence of two key anti-corruption agencies, moving to defuse the country’s biggest political crisis since Russia’s invasion.

Lawmakers on Thursday voted 331 to 0 in favour of the bill, which President Volodymyr Zelenskyy submitted last week following pressure from thousands of protesters and top European officials.

The measure now goes to Zelenskyy for a signature.

Ukrainians had reacted angrily to amendments pushed through parliament on July 22 by Zelenskyy’s ruling party that gave the president’s hand-picked general prosecutor the power to transfer cases away from the National Anti-Corruption Bureau (NABU) and the Specialised Anti-Corruption Prosecutor’s Office (SAPO) and reassign prosecutors.