Investors who hope to do good with their dollars are pouring money into ESG funds. Asset managers are eager to give them what they want—for a price.