A downgrade by Moody’s amplified some existing worries about the cost of President Trump’s policies and the health of the U.S. economy.