The system was put in place after Britain 's highest court ruled that detaining suspects without trial is unlawful .