The UK's highest court rules Mr Adams was being held in prison unlawfully when he tried to escape.