Historic compensation deal approved at COP27