Kindly, I think you are making it about you a bit.
You talk about YOUR feelings about something, and what you feel is totally understandable and logical. He has hurt your friend.
But this situation is about her, and what she wants to do. Your job as a friend is to support, not judge her decision. Many of us could not understand wanting to make things work with a cheating partner and would walk away, but many don’t. She has her reasons.
Put your feelings aside, and put hers front and centre. Go to the dinner. She will know EXACTLY why you have cancelled if you did, and would feel so rejected and alone.
Her life has just blown up, she needs friends to be there for her, not to judge her decision. You may not agree, but it does not directly affect you whether she stays with him or not.
If she has the forgiveness in her for a wrong done TO HER, you should dig deep and support that.
It does not mean that you have to like the situation, or agree with it, but you need to keep your thoughts to yourself for now, and behave politely to her husband. I’m sure you’ve been in situations before where you have had to be professional/polite/friendly even when you don’t really feel it; now is another of those times. Sulking with him or giving him the cold shoulder is not going to help your friend, which is what you ultimately want to do.
Awful situation to be in, I would feel exactly as you do. But I would not abandon my friend when she needs me the most, and I would not judge her for doing what she is doing; she has her reasons, I’m sure.
Good luck!