The S&P 500 and Nasdaq closed lower on Friday after touching record highs during the session, with chip stocks going into reverse and a mixed labor market report that showed more new jobs than expected with a rising unemployment rate.