Elon Musk’s electric-vehicle maker is speeding up construction of a plant in Shanghai in response to the U.S.-China trade dispute