Wall Street ends higher on optimism about U.S. debt-ceiling deal