PHOTO: Pool
Now playing
01:51
Trump: I prefer shutdown before midterms
President Donald Trump addresses the 73rd session of the United Nations General Assembly, at U.N. headquarters, Tuesday, Sept. 25, 2018. (AP Photo/Richard Drew)
PHOTO: Richard Drew/AP
President Donald Trump addresses the 73rd session of the United Nations General Assembly, at U.N. headquarters, Tuesday, Sept. 25, 2018. (AP Photo/Richard Drew)
Now playing
01:17
Trump to migrants: Make your nations great again
Central American immigrants depart ICE custody, pending future immigration court hearings on June 11, 2018 in McAllen, Texas. Thousands of undocumented immigrants continue to cross into the U.S., despite the Trump administration's recent "zero tolerance" approach to immigration policy.  (Photo by John Moore/Getty Images)
PHOTO: John Moore/Getty Images
Central American immigrants depart ICE custody, pending future immigration court hearings on June 11, 2018 in McAllen, Texas. Thousands of undocumented immigrants continue to cross into the U.S., despite the Trump administration's recent "zero tolerance" approach to immigration policy. (Photo by John Moore/Getty Images)
Now playing
01:06
Judge blocks asylum seekers from deportation
CHICAGO, IL - JUNE 29:  Demonstrators hold a rally in the Little village neighborhood calling for the elimination of the U.S. Immigration and Customs Enforcement (ICE) and an end to family detentions on June 29, 2018 in Chicago, Illinois. Protests have erupted around the country recently as people voice outrage over the separation and detention of undocumented children and their parents.  (Photo by Scott Olson/Getty Images)
PHOTO: Scott Olson/Getty Images North America/Getty Images
CHICAGO, IL - JUNE 29: Demonstrators hold a rally in the Little village neighborhood calling for the elimination of the U.S. Immigration and Customs Enforcement (ICE) and an end to family detentions on June 29, 2018 in Chicago, Illinois. Protests have erupted around the country recently as people voice outrage over the separation and detention of undocumented children and their parents. (Photo by Scott Olson/Getty Images)
Now playing
01:30
HHS refusing to release family separation stats
Now playing
01:01
Reporter to Sarah Sanders: Why did Trump lie?
Now playing
01:28
Trump: ICE agents are mean but have heart
PHOTO: Pool
Now playing
01:23
Trump: Our facilities better than Obama's
trump king of jordan visit
PHOTO: CNN
trump king of jordan visit
Now playing
01:15
Trump: No regrets signing executive order
Immigrant children walk in a line outside the Homestead Temporary Shelter for Unaccompanied Children, a former Job Corps site that now houses them, on Wednesday, June 20, 2018, in Homestead, Fla. (AP Photo/Brynn Anderson)
PHOTO: Brynn Anderson/AP
Immigrant children walk in a line outside the Homestead Temporary Shelter for Unaccompanied Children, a former Job Corps site that now houses them, on Wednesday, June 20, 2018, in Homestead, Fla. (AP Photo/Brynn Anderson)
Now playing
01:54
Children in limbo after Trump executive order
Secretary of State Mike Pompeo listens as President Donald Trump speaks during a cabinet meeting at the White House, Thursday, June 21, 2018, in Washington. (AP Photo/Evan Vucci)
PHOTO: Evan Vucci/AP
Secretary of State Mike Pompeo listens as President Donald Trump speaks during a cabinet meeting at the White House, Thursday, June 21, 2018, in Washington. (AP Photo/Evan Vucci)
Now playing
02:18
White House chaos over immigration reversal
Watched by Homeland Security Secretary Kirstjen Nielsen (L) and Vice President Mike Pence, US President Donald Trump signs an executive order on immigration in the Oval Office of the White House on June 20, 2018 in Washington, DC. - US President Donald Trump on Wednesday signed an executive order aimed at putting an end to the controversial separation of migrant families at the border, reversing a harsh practice that had earned international scorn."It's about keeping families together," Trump said at the signing ceremony. "I did not like the sight of families being separated," he added. (Photo by Mandel Ngan / AFP)        (Photo credit should read MANDEL NGAN/AFP/Getty Images)
PHOTO: MANDEL NGAN/AFP/Getty Images
Watched by Homeland Security Secretary Kirstjen Nielsen (L) and Vice President Mike Pence, US President Donald Trump signs an executive order on immigration in the Oval Office of the White House on June 20, 2018 in Washington, DC. - US President Donald Trump on Wednesday signed an executive order aimed at putting an end to the controversial separation of migrant families at the border, reversing a harsh practice that had earned international scorn."It's about keeping families together," Trump said at the signing ceremony. "I did not like the sight of families being separated," he added. (Photo by Mandel Ngan / AFP) (Photo credit should read MANDEL NGAN/AFP/Getty Images)
Now playing
02:49
What's next after Trump's policy reversal?
Trump meeting 06202018
PHOTO: POOL
Trump meeting 06202018
Now playing
02:33
Trump reverses position on family separations
President Donald Trump signs an executive order to keep families together at the border, but says that the 'zero-tolerance' prosecution policy will continue, during an event in the Oval Office of the White House in Washington, Wednesday, June 20, 2018. Standing behind Trump are Homeland Security Secretary Kirstjen Nielsen, left, and Vice President Mike Pence. (AP Photo/Pablo Martinez Monsivais)
PHOTO: Pablo Martinez Monsivais/AP
President Donald Trump signs an executive order to keep families together at the border, but says that the 'zero-tolerance' prosecution policy will continue, during an event in the Oval Office of the White House in Washington, Wednesday, June 20, 2018. Standing behind Trump are Homeland Security Secretary Kirstjen Nielsen, left, and Vice President Mike Pence. (AP Photo/Pablo Martinez Monsivais)
Now playing
01:52
Trump signs executive order to end family separations
PHOTO: CNN
Now playing
01:18
Trump: Take children away to prosecute parents
THE PRESIDENT meets with the National Space Council  In-House Pool (Pre-set 9:30AM | Final Gather 11:15AM -- Palm Room Doors)
PHOTO: Pool
THE PRESIDENT meets with the National Space Council In-House Pool (Pre-set 9:30AM | Final Gather 11:15AM -- Palm Room Doors)
Now playing
01:40
Trump: The US will not be a migrant camp
(CNN) —  

The House of Representatives on Wednesday approved a massive spending package that funds a large section of government and aims to avert a shutdown, just weeks before the midterm elections. The vote was 361-61.

The bill next heads to President Donald Trump’s desk for his signature. While the President has given mixed signals on whether he will sign the bill – due to its lack of money for a border wall – Republicans have expressed confidence this week that he will sign the measure.

Trump himself said earlier Wednesday that he’ll keep the government running.

“We’ll keep the government open,” Trump said at the end of a meeting with his Japanese counterpart in New York.

Trump must sign it by midnight Sunday to prevent a shutdown. The deadline marks the end of the fiscal year.

The bill includes a continuing resolution that will fund remaining unfunded parts of government until December 7.

Republicans and Democrats alike are hailing the bill as a success, as Congress has long struggled to pass legislation like this on time and before the start of the next fiscal year.

The package – which groups multiple spending bills together in what’s called a “minibus” – was approved overwhelmingly by the Senate last week, but there still remains a degree of uncertainty whether the President will actually sign it.

But privately and publicly, Republicans say they’re assured that he’ll put his signature on it in the end.

House Speaker Paul Ryan expressed confidence Wednesday that Trump would not veto the bill and said that the President has told him he will sign it.

“Yes, I am confident he will sign it,” Ryan told reporters during a news conference when asked if he had assurances from the President on the issue.

An official from the Office of Management and Budget told CNN that OMB held a call with all federal agencies earlier this week related to how those agencies would operate under a potential government shutdown. The call is part of the protocol required one week prior to expiration of appropriations, whether or not a shutdown is expected to be averted.

“I don’t think anybody in the country has an appetite for a shutdown,” said Rep. Chuck Fleischmann, a Tennessee Republican on the appropriations committee. Describing Trump as a “realist and pragmatist,” Fleischmann said Trump realizes “what we have gotten done this year has been infinitely better than what we’ve done in years past.”

The bill funds the military ahead of the September 30 deadline for the first time in years, as well as the departments of Labor, Education and Health and Human Services. In response to Hurricane Florence, lawmakers also added more than $7 billion in disaster aid. This comes on top of another minibus signed by the President last week.

Still, some areas of government will not get funding approved on time by the Sunday deadline. To prevent a shutdown, Congress attached a short-term spending measure, known as a continuing resolution, that will fund those departments until December 7.

Much to the President’s irritation, however, the current minibus does not include money for his signature campaign promise of a border wall. The issue is essentially on hold for lawmakers to figure out before the December deadline, avoiding a controversial vote until after the November elections.

Republican Rep. Mark Meadows on Wednesday criticized the GOP strategy of pushing the fight over the border wall past the midterms.

“At some point you have to maintain and keep our campaign promises and at this point I fail to see the merits of this strategy,” he told reporters.

But the North Carolina Republican nevertheless said that he does not expect there will be a shutdown as Congress moves forward with its current plan.

Meadows said that based on conversations he has had with the administration, he knows the President “doesn’t want a shutdown,” and said that he would put the probability of a shutdown occurring “at less than 5%.”

Trump, speaking in Montana earlier this month about Republican leaders in Congress, said “they don’t want to do anything to upset the apple cart.”

“If it were up to me?” he continued. “I’d shut down government over border security. In a second.”

But he went on to add he “most likely … will not do that,” noting he has a commitment from Republicans to address it “immediately after the election.”

Top congressional Republicans have made clear to the President that the political fallout of a shutdown, even a small one, would be potentially devastating a little more than a month before the midterm elections.

Just days ago, however, Trump was again sounding off in a tweet, demanding to know where the money is for a border wall in what he called this “ridiculous” spending bill. “REPUBLICANS MUST FINALLY GET TOUGH!”

Adding to some of the uncertainty is a veto threat Trump made on the last major spending bill to avert a government shutdown. Despite his frustration, he signed the bill hours later.

Republicans, when asked if the President will sign this week, are quick to note the package contains funding for the Department of Defense, which falls in line with Trump’s consistent call to rebuild the military.

Rep. Mac Thornberry, a Texas Republican and chairman of the House Armed Services Committee, told reporters on Tuesday that signing the bill would be the “biggest single step” in meeting that goal, and Trump’s frustration with the wall ultimately “won’t override the achievement part of this.”

“I want his signature on that dotted line,” he added.

Once approved by the House on Wednesday, as expected, the bill will likely reach the White House on Thursday, which is shaping up to be a busy day. A follow-up hearing is scheduled with Trump’s Supreme Court nominee Brett Kavanaugh and Christine Blasey Ford, the woman who accuses Kavanaugh of sexual assault in the 1980s when both were teenagers (Kavanaugh has denied the allegations).

Also on Thursday, Trump is slated to meet with Deputy Attorney General Rod Rosenstein, whose future appears shaky after he offered to resign.

The President will have until Sunday night to sign the package. But with House GOP leaders considering leaving town this week until after the election, there will be an emphasis on the President signing the bill by Friday, aides say.

CNN’s Rene Marsh contributed to this report.