Stocks ended the week more or less where they started it. Investors were watching while lawmakers in Washington worked at thrashing out a budget agreement. After inching 3.76 points higher Friday, the Dow closed at 13,025.58. That’s a gain of just 16 points for the week, one of the Dow’s smallest moves this year. Along the way, the market had several sharp turns both up and down after key figures in the talks, such as House Speaker John Boehner and President Obama, offered contrasting views about how well the talks were going. The Standard and Poor’s index edged up 0.23 point to 1,416.25. The index is up 0.5 percent for the week.