The United Auto Workers union sued General Motors Co in federal court on Thursday, claiming the automaker’s use of temporary workers at a plant in Indiana violates its labor deal and escalating a fight over GM’s plans to possibly close U.S. factories.