After a tense night in the Bay Area, President Trump called off a planned “surge” of federal immigration agents in San Francisco after friends persuaded him to back down.