The House on Tuesday passed a sprawling spending package that will end the partial government shutdown — but created another funding cliff for the Department of Homeland Security in two weeks.