Shares of banks and other financial institutions pared early gains as traders hedged their bets on the outlook for growth in the sector.

Shares of banks and other financial institutions ticked up as a boom in artificial-intelligence infrastructure financing continued.

Shares of banks and other financial institutions fell as traders hedged their bets ahead of key inflation data. A heated reading of July prices could lead markets to price in a…