The US president defended Russia over claims it interfered in the 2016 US election.