Stock market today: US stocks dip but end with a gain for the week after Fed-fueled rally