The U.S. equities market ended mostly higher Friday, with small-cap stocks beating the S&P 500 as Big Tech struggled.