Tesla has built largely self-sufficient supply chains in the United States and China, a rarity in a world of interconnected trade. As a result, the tariffs imposed by the Trump administration on Chinese goods, and the continuing threat to put them on Mexican and Canadian products, might help Tesla by hurting its competitors more.