By the end of Trump's second year, the prospects that he would achieve his economic goals were in grave doubt as growth slowed and the stock market swooned.