Candidates backed by the New York mayor won a clean-sweep, exposing a political divide within the Democratic party.