Obama to Appeal Detainee Ruling