Wall Street ends the best half year since 1998