A new labor agreement signals peace on the docks, but broader shifts in supply chains are roiling trade.