An online voter record confirmed the president cast a mail-in ballot for a House seat that Democrats ultimately flipped.