The prospect of a June increase in interest rates, which many traders had been discounting, muddled a positive day on Wall Street.