He wasn’t mocking her husband, he was mocking HER for cheating on her husband when he was deployed.
The classy thing to do would have been to thank MAJ Haley for his service.
With that said, Haley was wrong to bring up President Trump and combat. At the vert least, serving tells us something about a person.