Microsoft and the nation’s largest federation of labor unions launched a partnership Monday to train workers and leaders on how artificial intelligence is used in the workplace—amid rising concerns from workers and labor unions that AI could lead to job losses.