So these foundations are free to invest 95% of the money into whatever they want and only 5% into charity. And this data is partially open, they invest into oil, pharma, finance etc.
What is not open but very likely happening, is private talks behind the scenes about what these 95% should be invested in based on personal motivations/goals of these billionaires, i.e. just doing with their money what they want anyway, just in a tax-free way.