You know what you need to do, OP - and this is a space where women who've been through it can advise and support you.
His true face has been revealed, the mask has slipped. He hasn't changed - he's just stopped pretending. This is who and what he really is. When he's being 'nice' it's an act. Fake.
He has proved the contempt and hate he has for you with his verbal abuse, insults, foul language and threats.
Spitting is a very base level of contempt and it seems you both did it (absolutely not excusing him or blaming you, rather saying this is also a symptom of a dead marriage between two people who despise each other and shouldn't be wasting their lives together).
He has already hit you. Was it the first time? It will not be the last. He will do it again - and it will get worse.
And then he will hurt your child.
Even if he doesn't hit her, she's already been horribly damaged by witnessing it all and fearing for her mum.
Being made to stay with an abusive parent will damage her further.
So many women here who were that wife, or that child, can tell the same ugly old story.
You must act:
Is he British? I won't ask you what your nationality is, as it's outing.
Are you here on an arranged marriage?
Might there be family/cultural implications eg shame around you leaving the marriage?
Good that he packed and went. This is the right direction.
Good that your sister is coming - having family and friendship in a difficult situation is so valuable.
Your rights
You and your daughter have rights, whatever your nationality or immigration status.
You have been physically assaulted, physically and verbally abused, and your child has been terrorised.
Domestic abuse is an offence, and is taken seriously in the UK with the possibility of prison sentences. https://prisonguide.co.uk/whats-the-prison-sentence-for-domestic-violence-offences/
Please call the police if you haven't felt able to yet. There is zero shame here.
They may direct you to fill in this form if you are not in immediate danger: https://www.police.uk/report-domestic-abuse
https://womensaid.org.uk/information-support/the-survivors-handbook/im-not-sure-if-my-relationship-is-healthy/#unhealthy-behaviour
https://www.gov.uk/guidance/domestic-abuse-how-to-get-help
Your immigration status
Get advice. You can obtain a free half hour consultation with a lawyer to understand your situation - do some research.
You may qualify to remain here if your relationship has broken down through domestic abuse - start here: https://www.gov.uk/indefinite-leave-to-remain-domestic-violence-abuse
You will need to have reported it to the police today, to get the report reference number for your records.
I'd also recommend you get a GP appointment today for yourself and your daughter to get checked out so that is also on your records and you can produce that as evidence should you need to.
If you don't, be prepared to be questioned on WHY you left it so late to report to police and seek medical help - 'so it was clearly not that urgent', and all that bullshit.
Generally, write down EVERYTHING that's happened, everything he's said, done and threatened. Keep detailed records.
Be careful about him coming back - do not let yourself or your child be alone with him from now on. You have a child's safety to fight for.
Please let us know you're ok and you're starting to act.