A pub in Aylesbury Vale has been saved from closure after a nearby bar announced it will take over the running of the venue.