The last two midterms where Democrats surged against an unpopular Republican president were in 2006 and 2018. They had notably different outcomes.