The government didn't need to do anything as the process was already working.
Dismantling affirmative action was a political goal of the right wing since the moment it started.
It merely took them this long to pack the courts. You'll see similar regression in any area that they control significantly over the next 20 years or so.
What is best is to not have courts packed by conservatives.
As Manchin has advised, if you want more liberals in the House, the Senate and the Courts, elect more liberals.
I understand that many think that Affirmative Action programs should continue as they were structured before the decision. They must have strongly supported Asians with 4.0 averages being turned down by the Ivy league schools so that they could admit enough African Americans (and rich ones at that). I saw one interview with an Asian-American with better than a 4.0 average who applied to all the Ivy schools and to all the universities in California. He was rejected by every Ivy league school and accepted by every California university.
==========
Let's be clear. There are states that haven't had programs that singled out race for several decades.
============
BOTTOM LINE
1) The majority of Americans wanted to the court to end race-based Affirmative Action, and many would likely have wanted SCOTUS to go even further than it did,
2) The goal should NOT be a certain percentage of each race at various colleges. This is especially true when the programs don't help the poor, just the rich.
3) As a society, it is much better for colleges to have programs that give advantages in admission to those who are economically discriminated, and those who have had a personal history of being discriminated because of their race, religion, sexual orientation or for other reasons. As Obama said a decade ago, his children should NOT, should NOT have advantages because of their race.
4) YES, let us help the poor, the weak and the disadvantaged. NO, let us not discriminate against Asians.
5) The only way to end discrimination based on race is to stop discriminating based on race.
=========
AS AN ASIDE
A) Much has been made of Berkeley having relatively low numbers of African-Americans, supposedly because California bars affirmative action programs. First, these blacks found it easier to just take their race advantage and went to Stanford. Berkeley decided NOT to have a program to favor the economically disadvantaged.
B) STOP AND THINK! Why is there no affirmative action in California, the bastion of liberalism. The people voted it down decades ago by referrendum, and the programs do NOT have enough support to bring them back.