Climate summit reaches landmark accord