Two former chief diversity officers say companies that abandon DEI under pressure are making a costly, long-term business mistake.