The federal prosecutor who received orders to drop charges against Eric Adams said that the Trump administration was seeking the mayor’s cooperation on immigration enforcement.