Stocks opened higher on Thursday as traders pared back bets of a Federal Reserve rate hike in September following another inflation reading. Real estate, communication services, and consumer staples led the gains, while the energy sector declined.