Stocks climbed slightly but the overall week was headed for a loss.