Climate change deal is sealed in Bali