U.S. stocks edged higher as tech shares gained, with the S&P 500 and Nasdaq posting modest increases. Inflation data met expectations, while investors assessed Middle East tensions and a strained ceasefire. Chipmakers led the tech sector’s advance, though financial stock weakness capped broader gains.