The House passed a short-term measure Tuesday to fund the federal government into early December, a move designed to avoid a chaotic shutdown as lawmakers campaign for reelection.