Global markets reflected this optimism as the S&P 500 and Nasdaq closed higher for the second consecutive day