Is that actually that much more than building 400GW worth of nuclear generation capacity (assuming 10 hours of nighttime)? I think that, that simple calculation shows that it is viable. Even a trillion is 1/32th of the US GDP. Construction over a decade should not stress the US economy at all.
I also think your trillion number is at least double the raw cell cost today.