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.

READ MORE: Man Sentenced To Life For Murder Of Sara Hudson, Who Was Found In Burning SUV In Dallas

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.

READ MORE: Rolling Away -- Texas Motor Speedway President Eddie Gossage Announces Summer Retirement

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.

MORE NEWS: Uber Driver Stabbed, Carjacked By Passenger In Grapevine, Police Say

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