The appeal court cleared a man on Wednesday who has spent 27 years behind bars for murder, in one of Britain’s longest cases of wrongful imprisonment.