Its never made any sense that DEI hiring was legal under the CRA of 1964.
Everyone understood that this was going on, in private business as well as universities. Acquaintances would just outright say "We're looking to hire a woman of color/queer person/etc for this position". I never figured out how to politely ask why …