This is Congress:
H.R. 1540 of the One Hundred Twelfth Congress.
http://www.gpo.gov/fdsys/pkg/BILLS-112hr1540enr/pdf/BILLS-112hr1540enr.pdfSections 1021 and 1022 are the ones dealing with the detention of non-citizen terrorists.
This basically affirms the actions taken by the previous administration after the events of Sept 11, 2001.
It baffles me that a Democratic controlled Senate would issue it and a Democratic President would sign it. But he did, which pretty well puts the official governmental OK on the actions of Bush, Chaney, et al.
Personally I don't like it, and I didn't like it the only time it was being practiced. As far as I'm concerned, those actions were just as illegal then as so many are proclaiming they are now.