For future reference, timing is everything on things like these. You are extremely lucky you got it to come up. Since he has a habit of eating things he shouldn't (I recall a post where he ate couch cushion material) I would really make sure that you leave NOTHING to chance. Dog proof your house and make sure you keep a stern eye on him at all times. If you can't, then kennel him. It's for his own safety. It just takes having your eye off of him for one second. That second could be life and death.
Hate to be a drama queen, but I just put down close to 3K on a surgery to remove a sock out of my puppy's intestines. We watch her VERY closely too. I think she ate it the one night I allowed her to sleep in bed with us. She woke up at some point and jumpd out of bed without our realizing it. Who knows where she got it, but she found it. My point is, no matter how diligent you think you are these guys are sneaky!!!
So glad that you were able to get himto vomit it back up. Even more glad that he is doing fine