The case is likely to be the first to reach the Supreme Court on the substantive issue of the president’s invocation of a rarely used wartime law.