WASHINGTON—The U.S. trade deficit widened more than forecast in October to the highest in a decade, underscoring continued fallout from the trade dispute with China, Commerce Department data showed last Thursday. The goods trade gap with China widened to a record.