The $1tn spending measure would bolster investment areas including community solar and carbon capture