Clearly, Poland and Hungary have bought some time during the negotiations. But once the budget and recovery plan are formally approved, I would not be surprised if there were... suprises on this front.
Still. The EU has no armed forced or obvious legal levy to condemn a democratically elected government of a sovereign state to... respect democracy.
I suspect it's not going to last forever, but that's the sad state at the moment.
I don't remember that Duda's first election at the time caused any trouble (it was a defeat of the the incumbent) https://www.aljazeera.com/news/2015/05/duda-wins-polands-pre...
Also Orban's initial election was a surprise, but not undemocratic for what I know (I remember there was a number of scandal about oponents before.)
What happenned after the elections, of course, is a different thing...
Basically they were proud that they won't have to be lawful.
And the EU just let them.