WASHINGTON (AP) — The House has passed a $460 billion package of spending bills that would keep money flowing to key federal agencies through the remainder of the budget year.

The Senate is expected to take up the legislation before a midnight Friday shutdown deadline.

And lawmakers are negotiating a second package of six bills, including defense.

A significant number of House Republicans opposed the first measure, forcing House Speaker Mike Johnson to use an expedited process to bring the bill up for a vote.

Johnson says the bill gives Republicans some wins on spending and says Republicans “have to be realistic” about what they can achieve in such a closely divided government.