Xi, Putin condemn U.S., pledge closer ties