Surely you can see a difference between an one-off that after the fact was found to be illegal, and hasn't been repeated, versus a pattern of the courts making batshit insane rulings?
Since you think that the truckers had to right to do what they did... If the courts ruled against them, would you have taken that as evidence for the quality of the charter, and the legal system that stands behind it? Or is this a tails I win, heads you lose situation?
No piece of paper can ever prevent a government from doing something illegal, or from passing an illegal law. The courts are only ever an after-the-fact remedy.
In the US, meanwhile, that remedy doesn't even work.