Chinese EV maker BYD is finalizing plans for a factory in Mexico, a push that will test Trump’s trade policies and the Mexican government’s appetite for conflict with the president-elect.