The final debate in the New York City mayor’s race developed into a chaotic contest last week marked by name-calling, lecturing, personal remarks and even profanity as the long-shot Republican candidate, Curtis Sliwa, sought to knock Eric Adams, the Democratic nominee, off-kilter at every turn, but the majority has spoken and a new mayor has been elected.