He was joined by the first lady, who also cast her vote.