What a difference a year can make. The rally in U.S. stocks hasn’t been particularly flashy, but slow and steady gains propelled one market gauge to its best first half in 40 years. That’s an about-face from this time last year, when the market was reeling from its worst start in decades.