Until recently, green investment funds were mostly a niche for individual investors. But now investing with the idea of improving the environmental actions of corporations, not just maximizing profit, is catching on among big pension funds and foundations, particularly in Europe and even in a few outposts in the United States.