WASHINGTON (AP) – Opposition from Democratic liberals and tea-party Republicans in Congress may imperil a budget deal reached by Senate leaders to keep the government operating past midnight Thursday.

The bipartisan compromise would provide the Pentagon and domestic programs with an extra $300 billion over the next two years. That additional spending worries some deficit-minded Republicans, and some Democrats are unhappy that immigration isn’t part of the measure.

To that end, House Democratic leader Nancy Pelosi staged a record eight-hour speech arguing in favor of legislation for young immigrants in the country since childhood who face deportation.

The White House backs the Senate deal. Senate leaders hope to approve the measure Thursday and send it to the House for approval. But hurdles remain to avert the second shutdown in a month.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)