Zohran Mamdani will be sworn in shortly after the New Year’s Eve ball drops, in a private ceremony held at a shuttered relic of the city’s subway.