A $2 trillion reckoning is on the horizon as global ports become pawns in geopolitics. The entry points to international trade must undergo expensive renovations to adapt to the new age of competition, automation, and renewable energy.