The U.S. benchmark index climbed to a historic high despite rising bond yields and oil-price pressure, closing above 7,800 for the first time.