The President is following a familiar playbook by sowing doubt about election outcomes after a wave of Republican losses.