Instead of putting him in the house, I would put him in a down stay next to you. While this will be very labor intensive for a while, it will teach him self control and that he can be quiet and leave the other dog alone. Once he can lay quietly for a couple of minutes release him, and if he goes right back to pestering the other dog, bring him back into a down stay again. Keep doing this until he learns to play politely. You may need a leash until he starts to get the idea. Putting him in the house solves the problem for the other dog, but it doesn't really teach your dog anything about how you want him to behave. It is managing the problem rather than teaching the dog.