U.S. Markets close in 3 hrs 20 mins

Recap after the bell

Stocks hold onto weekly gains despite weakness in afternoon trading.