US tech giants' strong earnings boosted the S&P 500 and Nasdaq to record highs, driving up the New York Stock Exchange. Despite the impact of the Middle East conflict, investor sentiment recovered. However, some tech giants' lackluster performance dampened the rally.