Read the post "What Addicts Do"
Ugly, but true. It's a fact of life. Doesn't make them BAD, evil, worthless human beings, but they'll follow the behaviors that addicts follow. Hopefully, your husband will get detoxed and clean. Once he does that, then he can face the consequences of his actions. Hang in there. This is a BAD situation and you must be devastated, but at least it sounds as if he really wants to kick the habit and that is a positive sign.