Wall Street closed out another winning month Friday, even as stocks gave back some of their recent gains, pulling the market below its latest all-time highs.