US says Trump-Xi talks in Beijing focused on energy security, trade ties and keeping the Strait of Hormuz open amid rising Middle East tensions.