The company led by President Trump’s confidant Elon Musk builds all the cars it sells in the United States domestically and will be exempt from tariffs on finished vehicles.