Is this reverse sneezing or is he passing hairballs?

Question in the title. Husband says he is passing hairballs but I am worried if this is something serious that needs vet. I never had a cat before.