The right procedure is to calculate payoff periods for each project separately. Then, when deciding which projects to fund, you choose them starting with the shortest payoff times until your budget is used up.
If you spend $10,000 on a solar installation that is $10,000 you could have put in the market. After 15 years you saved $10,000 in electricity, and you’re supposedly profiting. However, that $10,000 investment would have grown to $24,000 at a modest 6%. So you’re actually still in the red, and you’ll likely never catch up and break even.
If you took out a loan it’s the opportunity cost on the payments. There is actually a theoretical break even here, but it’s not 15 years.
If you’re doing it for some altruistic reasons then it doesn’t matter. But if you’re making a payback calculation, you should do it properly. Opportunity cost is a real thing.
As it is right now there is enough funding for every conceivable project, assuming the project is profitable (pays debts back) the only real limits are physical resources and unemployed workers and running out of unemployed workers is a policy goal. If we hit real limits, then interest rates will go up and lenders will demand greater returns, which may mean that a solar project like this may not get started and people start seeking out more productive ideas. However, the most important thing is that investments pay their debts back.
[1] https://www.eia.gov/todayinenergy/detail.php?id=46276