Stock market today: US stocks end the week higher after cool inflation, Apple AI hype