U.S. home prices rose for the fourth straight month in May, according to the S&P Case-Shiller index.