U.S. stocks closed higher for a second straight day on Thursday on mounting optimism that a U.S. debt ceiling deal could be reached within days, with discount retailer Walmart Inc <a href="https://www.reuters.com/companies/WMT.N" target="_blank">(WMT.N)</a> p…