As diversity, equity and inclusion comes under legal attack, companies quietly alter their programs