President Donald Trump and the mayor of a top blue city appear to have an unexpectedly cordial relationship.