U.S. equities finished higher to add to gains seen this year, with the Nasdaq on a four-day winning streak.