Justice Department officials said the court rulings are flawed both in reasoning and scope, and promised to continue to defend the executive order and the president’s lawful authority to protect the nation’s security.