US stocks end up as Fed, CPI loom large next week