There's a big difference between obeying laws (which all companies pretty much have to do if they want to stay in business) and voluntarilly aligning with what they think a new president wants without there being any specific law forcing them to do that.
I actually think the business reason FOR the DEI stuff (to appeal to customers by coming accross as fair and progressive) made more sense. Have the customers really changed their minds just because someone else is in the Whitehouse?