The US president told reporters, "I voted for a guy named Trump," after casting his ballot.