Crowds of protesters were seen cheering in Kiev on Thursday as they watched a large screen confirm that the Ukrainian parliament had approved new legislation to restore the independence of anti-corruption agencies.
The legislation was approved with 331 votes in favor and none against.
The decision comes after a law - which was suspected of potentially restricting corruption investigations - was passed a week ago, prompting the biggest protests since Russia's war in Ukraine began more than three years ago.
The new law restores the independence of the National Anti-Corruption Bureau of Ukraine and the Specialized Prosecutor's Office for corruption cases.
The law must be approved by Ukrainian President Volodymyr Zelensky to enter into force.
Zelensky, who signed the original legislation on July 22, said the law's goal was to free the agencies from Russian influence, which has long made them vulnerable to corruption.
But the limits on their independence have angered many Ukrainians – especially young people – who have immediately organized protests, even as Russian missiles and drones have continued to target Kiev and other cities.
"People didn't expect young people to come out in such large numbers," said Anastasia Bezpalko, one of the hundreds of people who have taken to the streets over the past week.
"Young people have realized that someone has tried to deceive them, and that is why this strong sense of injustice has been fostered," the 23-year-old told Radio Free Europe.
Zelensky has proposed that the new law be introduced on July 31, saying that he has heard the voice of the people and that the new document will address concerns about Russian influence but will not jeopardize the independence of these agencies.
Zelensky's aide, Andriy Yermak, welcomed the vote.
"We have a wonderful civil society, wonderful youth, which President Zelensky listened to. This was a quick dialogue between the authorities and society," he said on social media.
Newly appointed Prime Minister Yulia Svyrdydenko said that "this is a direct and responsible response to the expectations of Ukrainian society and our European partners."
Deep-rooted corruption in Ukraine has hampered support for Kiev in some Western circles.
The protests have taken place as Ukraine looks to the United States and other Western allies to pressure Russia to engage in peace talks and end the war launched by Moscow in February 2022.
Russian President Vladimir Putin calls the war a "special military operation" to demilitarize Ukraine.
The West has responded to Russia by hitting the country's economy with harsh sanctions.
As a result of the war, thousands of people have died and millions more have been displaced from their homes./ REL (A2 Televizion)