Coronavirus outbreaks and related restrictions led to a shortage of workers and truckers at several major ports around the world last year, slowing the movement of goods in and out of freight hubs and pushing container shipping rates to record highs.