S&P 500 Hits 7,165 as Energy Costs Threaten Earnings Rally