The latest gains far exceeded expectations and showcased employers’ willingness to keep hiring to meet steady consumer spending.