Congressional incompetence is partially an act. They spend most of the year deflecting and complaining that they can’t get anything done, then in a burst here and there, they kick out a multitude of new laws. There’s a substantial level of political theater. Neither side wants to tell their base that they’re wrong. It’s easier to say that the other side is blocking them and golly gee I’m doing everything I can.
And the court could simply invent more utter nonsense to toss it out again.