With the midterms approaching and polls showing unease about the economy, some of President Trump’s arguments about its strength sounded eerily like those of his predecessor.