The president's comments came just days after what has been touted as a successful summit with China's Xi Jinping.