Appeals Court restores NDAA's indefinite detention provisions