HSBC probably got a few percent of that $880M in fees/interest/whatever. So unless they were laundering ~100x more than that, the fines absolutely did make all of that crime (even if it wasn't the full extent of it) net negative for the bank, and probably by a lot.