As legal challenges mount, some companies retool diversity and inclusion programs