For what it's worth, here's my two cents' worth. Brace yourself.
Is your husband buying treats that HE likes? If he is, they need to be his alone, if they're ones you shouldn't touch. If he has a "man room" in the house, perhaps he needs to keep them there - and he (not you - they're not yours) can share with the children if he wants to. Meanwhile, you need to get treats for yourself that you like but are more in line with your health goals. (I'm finding I dislike the taste of the junk-food goodies after I get away from them for a while. The problem is getting and staying away from them, right?)
If he's buying treats that he doesn't like but you do, then that's another thing. And some people, sadly, do like to try to sabotage others' goals. But if he's buying those wonderful cookies because he'd like one now and then (or even all of them now!), is there any reason he shouldn't other than the fact that they're bad for you?
Before you get ticked off at this, I'll add with some embarrassment that I have the very same problem at my house! I'm an emotional eater, and there are just some things that are hard for me to resist! I won't say what, but they're, um, not featured in the Food Pyramid. But my husband likes them, so he brings some home for himself.
If I eat them, whose problem is it - mine or his? Both, actually, but only because I've stuffed my face with what was supposed to be for HIS enjoyment. From my standpoint, however, it's more my problem, because I've broken promises to myself and lost more self-respect in the bargain. I remember a quote of Zig Ziglar's (but all too often after the fact): "One of the main causes of disappointment in life is trading in what you want most for what you want now."
The fact is that nobody can reach my health goals but me, and nobody can sabotage my health goals but me. Why should my husband change his tastes for me? I might wish he would, and if he wants to, well and good, but why should it be necessary for him? Do I have to be the center of the universe?
At least, that's what I tell myself. It's still very hard, but nobody's responsible for my weight but you-know-who.
One thing I remind myself is that if I ignore my health needs and become diabetic (and diabetes is practically epidemic these days), then I'll absolutely have to quit - forever - eating some of the things I crave, but the other members of my family won't need to. I would do better to change my own habits now, myself, before I run into THAT constraint!