From the very beginning many legal scholars and advisor said the case would be tossed for lack of standing because what Texas was saying is more of a generalized grievance instead of a specific injury unique to Texas.
As more States filed to "intervene" it further supported the idea of a generalized grievance.
If your complaint is a generalized grievance you lack standing and the case is tossed.
SCOTUS made the right call here.