DEI wasn't demonized because it tried to fight bigotry. It demonized itself because it routinely became a dishonest two-faced movement that public denied to be discriminatory, but then privately implemented policies that explicitly discriminated on the basis of sex and gender.
When your leaders publicly condemn the idea that your company is discriminating on the basis of sex, but then privately institutes a system of reserving headcount for women, that'll make most people real cynical about DEI.
Can you cite any companies which violated federal labor law in this way?
And those in power who went out of their way to demonize DEI, is that why they didn't like it? I would argue strongly that no, they had their priors already set, and anything help black people or poor people (the new proxy for hating black people) was bad and they'd lie through their teeth about the impact to get anyone on their side.