Court ruling sparks debate on detainee treatment