Is a man who steals from his child's mother and gambles away that child's home a good father?
This.
He is not a brilliant father!!!
You need to seriously stop feeling any sort of protective or defensive of him and transfer all of those feelings towards your daughter.
Protect her future. Defend her security.
I know it's so tough now but you are selling your family home to give him a get out of jail free card - LITERALLY.
He's just learned that no matter how much he fucks up, no matter how much he risks your family's security, no matter how little regard he has for your financial security, you'll pick up the pieces and still think he's a brilliant dad.
Like someone else said, this time there was a house to sell. He will do this again.
You need to get a forensic accountant (I think that's what they're called) to deep dive on this and be absolutely sure you know about everything to do with finances - yours and his.
There will likely be loans you don't know about, he will have minimised everything, your credit rating is now shot to shit. What if something god forbid happens to you and you can't work? You were in a good position before to ride that out - he's fucked that up.
He needs to be staying with family /friends so you can focus on what to do with a clear head. You cannot do that with him there in the house as he will use things like suicide threats to manipulate you and that means you'll be putting his feelings first, over you and your daughters future.
This is a massive betrayal, he has stolen from you. He has stolen what sounds like tens of thousands of pounds, am I right? You'd be liable for all of that debt because it's in your name and he knows you wouldn't press charges. Think about how disgusting that is.
I'm so angry on you and your daughters behalf.