Federal appeals court upholds indefinite detention of Gitmo detainee