The world’s largest EV maker is aiming to protect its growing global operations from yuan volatility amid rising trade tensions.