This anti-racist non-sense is some of the most actually racist policies I've seen put forth in decades. If this is the singular means by which they decided who to fire - they are being explicitly discriminatory and should be sued.
In the US, it isn't illegal to per se to consider race in hiring and firing decisions. The extent of the legal wiggle room that exists for various kinds of affirmative action is quite a complex issue of case law.