President Xi Jinping's four-day trip to San Francisco in the United States has steadied the course for ties between the world's two largest economies and injected fresh impetus into cooperation in the Asia-Pacific region, a senior official and analysts said.