US stock market rallies ahead of key consumer inflation data