US stocks close higher with optimism over debt ceiling bill