The union representing tens of thousands of dockworkers across the US has agreed to suspend its strike while negotiations continue.