As trial and appeals courts consider how to proceed, the Justice Department said it would continue to defend President Trump’s targeted travel ban.