The president, smarting from setbacks in war and tariffs, visits Ji Xinping ready to make deals