Ditto what every one else says.
He's addicted--right now he cannot stop.
He cannot stop until he wants to and seeks help--and event hen it is not a success only journey.
The best thing you can do right now is to model good and safe behavior for your daughter by leaving. Show her that choosing your own health and safety is a good thing.
Your husband has a lot of work to do--if he get's there. Don't ride the roller coaster with him...
Not saying it's easy; get support, get help. GET OUT!