President Trump’s rapidly shifting campaign of tariffs against Canada, Mexico and China are thrusting into the spotlight a corner of logistics that is usually an afterthought in global supply chains.