The stock market had its worst day since May after the government reported a sharp slowdown in hiring and President Donald Trump imposed sweeping tariffs on imports from a number of U.S. trading partners.