America's detention of captives from Afghanistan was legally challenged.