The national security adviser departed abruptly after President Trump suggested he might lift some sanctions as an incentive for Tehran to get to the negotiating table.