US, China close in on accord on key climate issue