Will you blame the postal office for delivering a bomb if it's properly packaged ? Probably not. The same way, I feel it's stupid to blame the banks for investing their customers' money where the yield is the largest when that is specifically what the customers' expect.
Put huge taxes on fossil fuel investment worldwide or give tax breaks for green investments, and money will go to greener areas. But governments don't want that either.