Actual resources? Much less than you think. By and large the bailout was done by transferring liability to central banks. Much of the "money" involved was purely virtual, credit or credit guarantees of one form or another.
Profitable to the US maybe .. but bless inflation exporting that took that burden and placed it on every thing (countries, assets,etc..) that are pegged to the USD.
The TARP was actually profitable: https://www.washingtonpost.com/business/economy/bailout-high...