If you have an absolute majority (which PiS was the first to achieve in 2015 and 2019), you can do anything. And if people protest, you can just wait them out - since 1991, only trade unions can announce paid strikes, their membership is dwindling and the largest one (Solidarity) became a puppet of the Law and Justice party.