After ESG pressures forced private equity investors out of oil and gas, investment firms of ultra-wealthy families stepped up.