President Donald Trump is in the catbird seat as New York City’s mayoral race enters its final days — positioned to benefit no matter who takes City Hall.