Negotiators work through the night to salvage U.N. climate summit