Judge holds ICE agent in contempt after he detained suspect during a trial