Several prosecutors have resigned from their posts after they were ordered to drop the case against the New York City mayor.