The surprise move by the United Automobile Workers could help the auto industry secure federal aid.