Economic pressures are forcing Donald Trump and Xi Jinping to seek an off-ramp in the trade war.