Walmart’s sweeping rollback of its diversity policies is the strongest indication yet of a profound shift taking hold at U.S. companies that are re-evaluating the legal and political risks associated with bold programs to bolster historically underrepresented groups in business