The automakers aim to shorten supply chains for their U.S. operations and avoid difficulties linked to tariffs and tax regulations.