Judges questioned the extent to which courts have the power to second-guess the president's invocation of the 18th-century law.