General Motors is investing $4 billion over the next two years to shift production of key gas and electric vehicles from Mexico to U.S. plants in Michigan, Kansas, and Tennessee.