Court orders release of SCNC detainees