The agreement comes as Egypt prepares to host COP27, the 2022 UN Climate Change Conference.