The top Manhattan federal prosecutor and two senior officials quit rather than dismiss charges against the mayor, allegedly part of a corrupt deal.