Not getting as much research done as I would have liked, but a few corrections. From what I was gleaning from wikipedia(yes I know) The majority of the money you mentioned for the 3 bankruptcies were loans or loan guarantees, a fair amount of difference from grants (as is also the case with Ivanpah)
And the amounts as of late between the 3 seem to come in about 750 million, not good, but certainly not multi billions.
As for the trillions, cost of Iraq, and a large part of the last 40 or so years of involvement in the middle east. Deaths and lost work days due to pollution, especially coal. And of course climate change.