As US pulls back, China builds influence at UN