Eighteen months ago, the people who manage the endowment at the John D. and Catherine T. MacArthur Foundation got some bad news: Investments they had made in funds managed by EnerVest, a Houston-based private equity firm that operates more than 33,000 oil and gas wells across the US, had plummeted in value to almost nothing. …