Stocks retreated from a three-week high as a new round of tech curbs suggests more troubles ahead in US-China trade.