S&P 500 hits record highs as US-Iran ceasefire extension nears