The mayor said that security planners were focused on the period between now and the inauguration on Jan. 20, but that they also were preparing for the prospect that Mr. Trump would be a regular presence in the city during his term.