Affirmative action in the United States
In the beginning, racial classifications that identified race were inherently suspect and subject to strict scrutiny. These classifications would only be upheld if necessary to promote a compelling governmental interest. Later the U.S. Supreme Court decided that racial classifications that benefited underrepresented minorities were to only be upheld if necessary and promoted a compelling governmental purpose. (See Richmond v. J.A. Croson Co.) There is no clear guidance about when government action is not "compelling", and such rulings are rare.

Q: Who later confirmed that racial classifications were only to be upheld if they were necessary?
U.S. Supreme Court