The law has been used three times in history - but only when the United States has been at war with a foreign nation.