U.S. equities closed lower Tuesday, pulling back from record highs, as oil prices pressured energy stocks.