The law that was struck down lumps everyone who isn’t a straight white male into the same category. At least as to race, the majority of non-whites are immigrants or children of immigrants, so immigration recency is an important factor that laws like this fail to consider.
Moreover, the category of “white” is deceptive. I suspect that corporate boards have few people of Appalachian descent, and many people of New England Puritan descent. Understanding what causes that disparity would probably reveal structural mechanisms that affect other groups as well.
At bottom, this law suffers from the same defect identified by Judge Thapar in striking down racial preferences for SBA loans: https://www.opn.ca6.uscourts.gov/opinions.pdf/21a0120p-06.pd.... Maybe there is a kernel to this law that passes Constitutional muster because it addresses concrete harms to specific groups that can’t be remediated in a less discriminatory way. But the intersectionality approach of lumping everyone from ADOS to immigrants to LGBT people into one category for favorable treatment isn’t going to fly under civil rights laws.