The judge can and likely will strike this down, but the damage has been done by that point (delay the procedure and wear the very human opponent down) and I doubt there will be meaningful consequences or compensation for trying.
I believe this is a US case, so the free citizens of this wonderful democratic country can just vote better lawmakers into their parliament at the next election.
Ironic
Most of our lawmakers are lawyers, for who is more qualified to write laws? They write laws that serve the interests of their colleagues. Trust the experts.
At least the lawmakers in both of our legislative bodies are democratically elected, unlike the UK which somehow still has hereditary positions in their government in the year 2024.
I thought that only life peers got to vote. Not so?
Don't forget that the UK is one of only two countries in the world that has dedicated positions (26 Lords Spiritual) in their government for members of the state religion. The other country is Iran.