The president seemed to embrace the idea that sowing discord in American politics had been Russia’s aim, after previously saying little to acknowledge a threat.