The US president said that he and Xi made progress on a range of issues, including Russia’s war in Ukraine.