New Yorkers are electing a new mayor as President Trump threatens to cut federal funds if his pick loses.