Lenders offering energy-conscious loans care little about borrowers’ creditworthiness, contractors function as loan brokers—and investors can’t get enough