US stocks close at record highs and oil climbs