Some credit unions are offering energy efficiency loans to homeowners and businesses to strengthen their portfolios.