Dockworkers at ports from Maine to Texas in the US have set up picket lines in a strike over wages and automation that could reignite inflation and cause shortages of goods if it goes on for more than a few weeks.