President Trump, who won reelection based on a promise to turn the economy around, now faces a reckoning in midterms centered largely on his economic record.