The U.S. job market showed surprising resilience in August, adding 162,000 positions—far beyond what analysts anticipated.