There were winners and losers, but the government made money on TARP. That doesn't fit anyone's narrative very well, so you don't hear that much about it, but its a fact. So far not a public dollar has been lost in the current crisis. FDIC, like other insurance, is paid for by the insured. Every FDIC bank in the country is paying the cost of this.
The problem with those numbers is that TARP lost money if you account for inflation over that period. That said the point wasn't to make the government money anyway, so whether that matters is up to you.
https://en.wikipedia.org/wiki/Troubled_Asset_Relief_Program