Protesters hold posters reading "constitution" and "I love and understand Freedom" during a protest in front of the presidential palace in Warsaw, as they urge Polish President to reject a bill changing the judiciary system on July 23, 2017. Protesters take to the streets across Poland after lawmakers adopted a controversial reform of the Supreme Court despite the threat of unprecedented EU sanctions. The rallies sprung up after the lower house of parliament, which is controlled by the ruling conservative Law and Justice (PiS) party, voted 235 to 192 -- with 23 abstentions -- in favor of giving the government power to select candidates for the court.
JANEK SKARZYNSKI/AFP/Getty Images
Protesters hold posters reading "constitution" and "I love and understand Freedom" during a protest in front of the presidential palace in Warsaw, as they urge Polish President to reject a bill changing the judiciary system on July 23, 2017. Protesters take to the streets across Poland after lawmakers adopted a controversial reform of the Supreme Court despite the threat of unprecedented EU sanctions. The rallies sprung up after the lower house of parliament, which is controlled by the ruling conservative Law and Justice (PiS) party, voted 235 to 192 -- with 23 abstentions -- in favor of giving the government power to select candidates for the court.
Now playing
01:48
Polish President to veto controversial reform
Now playing
03:44
Do the 1990s hold the key to sustainable websites?
Now playing
01:10
Watch SpaceX land its Mars rocket prototype for the first time
Now playing
05:52
The climate crisis is taking these farmers' most valuable resource
U.S. President Donald Trump works on his phone during a roundtable at the State Dining Room of the White House June 18, 2020 in Washington, DC. President Trump held a roundtable discussion with Governors and small business owners on the reopening of American's small business. (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images
U.S. President Donald Trump works on his phone during a roundtable at the State Dining Room of the White House June 18, 2020 in Washington, DC. President Trump held a roundtable discussion with Governors and small business owners on the reopening of American's small business. (Photo by Alex Wong/Getty Images)
Now playing
02:37
Facebook Oversight Board: Indefinite suspension of Trump's account is 'not appropriate'
Now playing
03:41
How technology at NASA helps guide Biden on climate
Now playing
01:42
A vaccine without needles? It's on the way
SAN FRANCISCO, CA - FEBRUARY 06:  Host Conan O'Brien speaks onstage during the 5th Annual NFL Honors at Bill Graham Civic Auditorium on February 6, 2016 in San Francisco, California.  (Photo by Tim Mosenfelder/Getty Images)
Tim Mosenfelder/Getty Images
SAN FRANCISCO, CA - FEBRUARY 06: Host Conan O'Brien speaks onstage during the 5th Annual NFL Honors at Bill Graham Civic Auditorium on February 6, 2016 in San Francisco, California. (Photo by Tim Mosenfelder/Getty Images)
Now playing
01:48
Conan announces his last show after 30 years in late night
Drew Angerer/Getty Images
Now playing
03:14
Will Trump be allowed back on Facebook? This board will decide
CNN
Now playing
05:16
WTF is a SPAC?
Now playing
01:51
A shortage of tanker truck drivers could cause stations to run out of gas
CEO at Verizon Media K. Guru Gowrappan appears at the 2019 Verizon Media NewFront on April 30, 2019 in New York City.
Noam Galai/Getty Images for Verizon Media
CEO at Verizon Media K. Guru Gowrappan appears at the 2019 Verizon Media NewFront on April 30, 2019 in New York City.
Now playing
02:47
Verizon sells off Yahoo and AOL
Warren Buffett, CEO of Berkshire Hathaway, attends the 2019 annual shareholders meeting in Omaha, Nebraska, May 3, 2019. (Photo by Johannes EISELE / AFP)        (Photo credit should read JOHANNES EISELE/AFP via Getty Images)
Johannes Eisele/AFP/Getty Images
Warren Buffett, CEO of Berkshire Hathaway, attends the 2019 annual shareholders meeting in Omaha, Nebraska, May 3, 2019. (Photo by Johannes EISELE / AFP) (Photo credit should read JOHANNES EISELE/AFP via Getty Images)
Now playing
02:40
Warren Buffett warns on US inflation
Now playing
01:00
Astronauts splash down after record-setting mission
ATLANTA - APRIL 30:  A Boeing 757 with a new Delta Airlines logo sits on the tarmac following the company's emergence from bankruptcy at Hartsfield Jackson International Airport April 30,2007 in Atlanta, Georgia. The 757 sports new branding that will appear on more than 900 planes, at airports and on advertising.  (Photo by Barry Williams/Getty Images) 757
Barry Williams/Getty Images North America/Getty Images
ATLANTA - APRIL 30: A Boeing 757 with a new Delta Airlines logo sits on the tarmac following the company's emergence from bankruptcy at Hartsfield Jackson International Airport April 30,2007 in Atlanta, Georgia. The 757 sports new branding that will appear on more than 900 planes, at airports and on advertising. (Photo by Barry Williams/Getty Images) 757
Now playing
02:28
Why Delta airlines is resuming selling middle seats
Now playing
02:50
Grocery chain says 'hero pay' forcing them to close stores
(CNN) —  

Polish President Andrzej Duda has surprised observers by vetoing two bills that would have given his populist government sweeping powers over the country’s courts.

The controversial bills are part of a package of judicial reforms put forward by the ruling right-wing Law and Justice Party (PiS) and passed by both houses of Polish parliament last week.

The proposed reforms have prompted huge protests in the capital Warsaw and across the country.

“This law would not strengthen the sense of justice” in society, Duda said in a televised declaration Monday, the AFP news agency reported.

Duda's decision to veto the Supreme Court bill was unexpected.
Mateusz Wlodarczyk/NurPhoto via Getty Images
Duda's decision to veto the Supreme Court bill was unexpected.

Crowds began to gather outside the presidential palace on Monday morning, waving Polish flags and chanting: “we did it” and “thank you!” The President’s veto is a victory for Poles who turned out to protest in over a hundred cities over the weekend.

Critics had condemned the legislation as a blatant power grab by the PiS, which repeatedly insisted that it was simply carrying out needed judicial reform.

Key to the legislation was that current Supreme Court judges would be forced into early retirement and new judges appointed by the Justice Ministry.

Duda’s announcement came just two days after Parliament’s upper house, the Senate, approved the bill following 16 hours of debate. The lower house had voted the measure through on Thursday.

Protesters rally in front of the presidential palace in Warsaw on Sunday.
JANEK SKARZYNSKI/AFP/Getty Images
Protesters rally in front of the presidential palace in Warsaw on Sunday.

The legislation was described by protesters as the beginning of the end of democracy in the Eastern European country, one of the first former communist nations to join the European Union.

In his speech, Duda appealed to the opposition to “change tack,” urging protesters not to turn to violence.

“People can demonstrate in the streets, can show their dissatisfaction, but not resort to violence,” Duda said. “I admit, that my decision can be controversial. But, I’m stating here that this law, which has been passed through parliament, will not come into effect,” he added.

A poll conducted by CNN affiliate TVN last week found that 55% of Poles said Duda should veto the court laws; 29% said he should not.

What’s next?

Parliament has the power to override the President’s veto, but it would require a three-fifths majority, which would be impossible for the PiS to achieve without the support of other parties.

The ruling party will now have to go back to the drawing board and re-envision its package of reforms.

Just before news broke that Duda would veto the legislation, Deputy Justice Minister Marcin Warchol voiced his concern that rejection of the bills could halt changes to a judicial system which he says is corrupt and inefficient.

Protesters rallying on Sunday against the proposed judicial reforms.
JANEK SKARZYNSKI/AFP/Getty Images
Protesters rallying on Sunday against the proposed judicial reforms.

“If the President vetoes the law we will have to discuss the new shape of the disciplinary procedures against the judges,” Warchol said.

“We can talk about the new law, but one thing is certain – the ethical standards will have to be restored, and the Supreme Court must stand guard over those standards, instead of moving a corrupt judge to a different court.”

Later on Monday, the President’s spokesman confirmed that Duda would in fact sign a third bill, which will give the Justice Minister the power to select the heads of Poland’s lower courts.

EU warning

The President’s unexpected decision on Monday comes after both the European Union and US State Department voiced concerns over the legislation. The EU said that it would erode the judiciary’s independence.

Frans Timmermans, first vice president of the European Commission, last week threatened the use of Article 7, a mechanism that would allow for sanctions against Poland and possible suspension of its voting rights in the bloc. The measure has never been used before.

Protesters hold posters reading "constitution" during a demonstration in front of the presidential palace on Sunday.
JANEK SKARZYNSKI/AFP/Getty Images
Protesters hold posters reading "constitution" during a demonstration in front of the presidential palace on Sunday.

European Council President Donald Tusk, a former Polish Prime Minister from the opposition Civic Platform Party, warned last Thursday of “dangerous consequences” for Poland’s standing on the world stage and said he had asked Duda for an urgent meeting.

“Bringing the courts under the control of the governing party in the manner proposed by the Law and Justice Party … will ruin the already tarnished public opinion about Polish democracy,” he said.

A Trump effect?

The public outcry over the plans had been partly overshadowed by recent high-profile visits to Poland by US President Donald Trump and the British royals.

But the US State Department tweeted a warning Friday to Poland “to ensure that any judicial reform does not violate (the) constitution & respects judicial independence.”

When asked whether the Trump administration would urge Duda to veto the measure, State Department spokeswoman Heather Nauert said: “I am not aware if we will ask him to do that.”

CNN’s Antonia Mortensen reported from Warsaw, Eliza Mackintosh reported from London.