Carnival and this power generator stock led the S&P 500 higher in the final week of June