was what I did called for?!?!?

So I've been with my husband for 2 years. He's immature at some times but typically I put up with it. Anyways he was drinking with some friends and he asked me to come pick him up so I did. He was acting stupid making dumb jokes. And As we're driving home, he rolled down the window and yells FAT ASS at a woman on her bike with her husband. My blood was boiling and I slammed on the breaks and said what the fuck! As they passed I was screaming at him and said you fucking apologize! He was yelling at me to go and the couple passed by looking like we're crazy. He's mad and me and I'm not sure what I did was too far. I'm still pissed but does he have the right to be mad at me?