The US economy added a stronger-than-expected 172,000 jobs last month, a sign the labor market may be stabilizing.