To compare judges to kings in this case is so absurd as to barely be worth refuting. The court is working within within a legal framework, not wielding supreme executive power granted by divine right and inherited through a dynasty.
The judiciary can then declare those new laws to be unconstitutional.
That is an active judiciary. It is be deplored. The judiciary in the US is supposed to be the weakest branch of three. The EU is an example of what happens when it's the strongest.