At a time when opinions of Wall Street are low, big banks are plowing vast sums into socially responsible projects.