All seven justices of the High Court were of the opinion that indefinite immigration detention for people with no prospect of deportation was unlawful, according to reasons published by the court this afternoon.