With lower close, S&P 500 suffers worst first half in more than 50 years; Nasdaq, Dow also fall