Court rules on unlawful detention at Heathrow airport