Several banks suffered fourth-quarter hits when they reduced the value of certain energy investments. Still, renewable energy could remain a viable business thanks to other benefits embedded in the tax law.