African pledge comes as wrangling continues about how to fund the energy transition in developing countries