The House passed a government spending bill Friday evening to avoid a government shutdown set to ensue at midnight.