President Donald Trump has threatened to shut down the government, affecting the stock market in a negative way.