US stocks climb in Q2's end