Lawyers with the U.S. attorney’s office in Boston asked a federal judge Wednesday to toss a state court judge’s contempt finding against an Immigration and Customs Enforcement agent who detained a defendant midtrial, calling the decision a “damaging state intrusion into federal functions.”