Appeals Court Rules Against Ex-Detainees