If the government is firing DEI are they not firing people under a protective class?

If they are firing people who were hired DEI, then those people are let go, isn’t that discrimination? Will this not lead to discrimination lawsuits?? And if not, why not?