The consumer-discretionary and technology sectors took their lumps as President Trump altered U.S. trade policy.