With a past small bowel obstruction, vomiting and dilated bowel loops on X-ray can mean a partial blockage, often from adhesions. It is good that he passed stool and feels better, which suggests it may be settling, but this needs close watching.
Next Steps
Please keep him under a doctor's care today, ideally a gastroenterologist or surgeon, who may repeat the X-ray or advise a CT scan. Start with liquids and light food only, and avoid laxatives unless his doctor advises them.
Health Tips
Take him to emergency at once if vomiting returns, the abdomen becomes swollen or painful, he cannot pass gas or stool, or he has fever or vomits green fluid.