It seemed catastrophic when Donald Trump cut $1bn in funding for South Africa’s just energy transition. But it is far from existential