Their strained relationship was on rare public display over the weekend when the president chastised his national security adviser over questions of Russia’s involvement in the 2016 election.