In California v. Texas, the court ruled 7-2 that Republican-led states and two individuals do not have standing to bring a constitutional challenge to the Affordable Care Act.
https://www.supremecourt.gov/opinions/20pdf/19-840_6jfm.pdf
https://www.supremecourt.gov/opinions/20pdf/19-840_6jfm.pdf