Brooklyn has one of the last vestiges of a boroughwide political organization in New York City , in which the endorsement of the party machine can be crucial for victory , especially in judicial races .