Lawmakers have introduced a $1.2 trillion spending package that sets the stage for avoiding a partial government shutdown for several key federal agencies.