Wall Street finished the week with solid gains Friday as technology stocks led a market rally and the sector notched its best week in four months. Financial, health care and consumer stocks also helped lift the market. The gains erased losses from last week, when the S&P 500 had its worst week of the year.