Investors have been fearful that a dramatic escalation of a trade war could plunge the US and global economies into a recession.