I think this is a good move by China. They will be building up their own energy infrastructure while defunding the pathologic Middle East states, in the long run. By 2040, battery technology should be substantially higher improved over today.
They are not defunding the Middle East. Who else would buy their weapons?