The stock market erased an early drop and ended mixed Friday, capping a strong week and month.
Stocks rebounded after President Donald Trump outlined several actions in response to a move by China to exert more control over Hong Kong, but steered clear of upending a trade pact struck with Beijing earlier this year.
Technology and health care stocks accounted for much of the market’s gains. That helped offset losses in banks, industrial companies and elsewhere. Bond yields fell and gold prices rose, signs that investors remain cautious. Oil recovered from an early slide.
The S&P 500 rose 14.58 points, or 0.5%, to 3,044.31.