US stocks post six-year quarterly high