Trump’s Department of Justice had demanded federal prosecutors move to dismiss the case against Adams so he could assist the president in carrying out his agenda