Leaders have reached the first major agreement signed at the COP26 conference.