Right - Solar really just front-loads the energy costs of the building. You pay for ~5-10 years of energy up front, and then recoup that investment over the next 30+ years, coming out ahead in the end. You could argue that this sort of policy is a win-win in that it both reduces the longer term cost of housing (both for the first and subsequent owners) and also reduces the amount of net energy required (saves on new power plants, carbon).