Stocks rose Friday after a strong jobs report reassured investors about the health of the United States economy.

Employers added 128,000 jobs in October, more than economists had expected, the Labor Department said, and revisions to prior months’ data tacked on another 95,000 jobs.

October’s figure would have been stronger had it not been for a strike at General Motors, and for the layoffs of some 20,000 temporary census workers.

Investors have been focused on the impact of the trade war between Washington and Beijing and its impact on American businesses. Stocks have been climbing in the weeks since the two sides signaled progress toward reaching an interim deal that would provide farmers and companies some relief.