The president has leaned on automakers to shift production to the United States and has imposed tariffs on vehicles, steel, aluminum and parts.