Stocks rose Thursday after the House passed a bill to extend the U.S. debt limit.