The U.S. President painted the trip as a success, but he appeared on the backfoot in Beijing.