The US could have seen shortages and higher retail prices if a dockworkers strike had dragged on

NEW YORK — U.S. ports from Maine to Texas shut down this week when the union…