A Boston judge dismissed a criminal case against a migrant here in the United States illegally, citing prosecutorial misconduct after Immigration and Customs Enforcement (ICE) agents detained him during his criminal trial. The judge also held the arresting ICE agent in contempt of court for “egregious misconduct.”