Trump and Xi discussed matters ranging from AI and trade to the stalled war in Iran, and confirmed that they would meet for a third and fourth time this year