It's certainly very wrong of him to do that and repeat the mistake. May be your friend needs to step away and say "I'm sorry I can't discuss those things with you" and stop talking. Discussing and talking about things with your husband is your right and your friend is taking that right away from you even though he/she doesn't mean to. Not okay from your husband to do that. Hang in there. I'm not a fan of the "not talking" situation. But wait until you two are more calm to talk about the issue, because you can't ignore it. Don't call or text about the same thing again today. Bake or invest your time in something you like today, love yourself and then you can send him an email about the things you did today.
I wish we could all in the forum be girlfriends and meet for coffee and let our frustruations out. Oh wait, this is a coffee social.