US stocks closed out their best quarter since 2020 on Tuesday, driven by strong jobs data, a US-Iran ceasefire, and a broad semiconductor rally that lifted the Nasdaq 20% for the quarter.