After months of trading public barbs, the US president and New York City mayor-elect are set to meet in person.