Obama also spoke with Sen. Bernie Sanders of Vermont, thanking him “for energizing millions of Americans.”