What’s done is done. You need to move forward with as much grace as possible, to salvage a relationship with your DD.
You need to disengage as much as possible from your husband.
You need a plan for the finances.
And you need some counselling for yourself.
I’m really sorry for the situation you find yourself in, it’s awful. But I am most sorry for your teenage DD.
I smack her when she is extremely naughty and hurtful
This sounds like you still think it is justifiable, and that it hasn’t been one-time only or horrified you enough that you speak of it on the past tense.
It’s completely unacceptable.
Your DD has a right to choose which parent to live with even if it hurts your feelings. As long as her father is not engaging in anything that will harm his child - and a sexual preference is not necessarily likely to do that - then you cannot use his trans-identification against his m, no matter how personally devastating it has been.
If he’s engaging in behaviour that will put your DD at genuine risk, however, then that’s different.