Tesla is taking steps to reduce its reliance on China-made components for vehicles produced in the US, joining other automakers like General Motors in shifting supply chains away from the country.