Solar-energy installations are set to receive record loans this year through a U.S. municipal finance tool modeled after one that backed $17 billion of sewers and sidewalks in the past decade.