Amazon.com Inc. is halting some of its diversity and inclusion programs, a move that coincides with activist pressure on American companies to abandon efforts to build a more diverse workforce.