Stocks closed sharply higher on Wall Street, erasing their losses for the week, after the government reported a cooldown in hiring last month