Change is coming. Foundations who once would have invested to maximise profits (under their fiduciary duty) even if would be counter to the mission of the Foundation are waking up to fact they are part of the problem (e.g. anti-cancer NFPs that would invest some of their corpus in Tobacco companies).
This article articulates the challenge and suggests four steps to help Foundation Boards ensure they are not undermining their good work.
https://nonprofitquarterly.org/trouble-in-paradigm-foundations-bargain-with-the-devil/