The stock market shed gains after the Trump administration announced it was moving forward with stiff tariffs on Chinese imports.