Mr. Trump escalated his feud with the courts over his travel ban, saying the judges had failed to grasp concepts even “a bad high school student would understand.”