A centuries-old pub that closed almost two years ago will reopen on a smaller scale after divisive plans to transform it were given the green light.