The agreement ends a period of uncertainty during drawn-out negotiations that triggered shifts in some U.S. supply chains.