US stocks rally as market bets on moderating Fed policy