Shippers and the major carriers were left scrambling to understand the full impact of China’s decision to expand limited COVID-19 restrictions into a citywide lockdown on the 26 million residents of Shanghai, which is also home to the world’s busiest container port.