The act is a wartime authority that allows the president to detain and deport non-U.S. citizens from enemy countries.