There are a lot of investment funds like this, usually called something like "ESG" (environmental, social, and governance) funds.
The whole “VC in non-profit” thing was a trend from 2012 to 2017 or so and it did not work out for this reason.
There is a radical version of capitalism where you would say only things that make money (what people pay for) are providing social value, but I don’t think that’s what you’re getting at.