You're right. The judge is required to determine standing first. If there is none, the case ends. What a maroon.
I also blame these Government lawyers for not filing motions to have these judges dismissed from the cases based on prejudicial biases. Get the judges records, find out who they had lunch with, how many drinks they had for lunch, organizations they spoke to or accepted money from, etc...