Supporters in the conservative Law and Justice party said the changes would make Poland's courts more efficient and more accountable to regular citizens by giving elected representatives a role in choosing judges.
Opponents said the ruling party, led by powerful leader Jaroslaw Kaczynski, was violating international law and Poland's Constitution by infringing on judicial independence and the separation of powers principle.
Opposition lawmakers in a country that threw off decades of communist rule 28 years ago chanted "Dictatorship!" before and after the votes in the Sejm, the lower house of Poland's parliament.
Borys Budka, a former Polish justice minister who also belongs to Civic Platform, predicted the laws would not bring about real reforms, just "party-controlled courts."
More From This Section
The laws change the functioning of the nation's Supreme Court and the process for naming the National Council of the Judiciary, a body that nominates judges.
Lawmakers voted 239-171, with 24 abstentions, to pass the law on the Supreme Court, which confirms election results as well as serving as court of last appeal in Poland. They voted 237-166, with 22 abstentions, to approve the law on the judicial council.
Law and Justice says it has a democratic mandate to reform the judicial system, which it claims never was properly purged after communism fell and which it describes as deeply corrupt and inefficient.