US stocks climb as traders hope cooler June inflation means end to Fed tightening