Marking a truce after years of fiscal feuding in Washington, Congress passed a $1.1 trillion spending package Thursday that effectively ended the threat of an election-year government shutdown.