They didn't decide, though.
That was decided through legislative branches, through the democratic process.
It wasn't SCOTUS's role to override our representatives in the democratic branch to support affirmative action if the country hasn't sanctioned it.
The question before the court was over the application of Title VI of the Civil Rights Act of 1964 and the Equal Protection Clause of the Fourteenth Amendment.
https://www.supremecourt.gov/docket/docketfiles/html/qp/20-01199qp.pdf
@volkris that's an awfully strained, bordering on disingenuous argument given that affirmative action has existed for decades concurrent with the Civil Rights Act and 14th amendment, and that previous courts had ruled in favor of university affirmative action for admissions (e.g., Fisher II).
It's a statement of fact...
There's no argument here. The fact is, the question before the court was about this legislation.
I'm not doing any analysis here or making any statements of value. This is flat out the question presented to the Court, and I believe I linked to it above.
@volkris what legislation are you referring to?