NEW YORK — Stocks rose on Friday in a modest but broad rally that erased much of the losses from earlier in the week when investors had sold over fears of rising interest rates.Health care and technology stocks rose the most, helping to nudge the Standard and Poor's 500 index back to slight gains for the week and year.