Banks have gradually increased investments in clean and renewable-energy technology, which was beyond conventional banking a few years ago.