City council secures protection for much-loved local pub