China’s surprise announcement of a long-term goal to curb emissions boosts UN climate talks.