“Can a district court consider and rule on a motion for summary judgment of invalidity and issue an alternate ruling after first ruling that the plaintiffs lacked Article III standing — which could not be cured?”