WASHINGTON — President Donald Trump is promising billions to help Texas rebuild from Harvey-caused epic flooding, but his Republican allies in the House are looking at cutting almost $1 billion from disaster accounts to help finance the president’s border wall.

The pending reduction to the Federal Emergency Management Agency’s disaster relief account is part of a massive spending bill that the House is scheduled to consider next week when lawmakers return from their August recess. The $876 million cut, which is included in the 1,305-page measure’s homeland security section, pays for roughly half the cost of Trump’s down payment on the U.S.-Mexico border wall that the president repeatedly promised Mexico would finance.

It seems sure that GOP leaders will move to reverse the disaster aid cut next week as floodwaters cover Houston, the nation’s fourth-largest city, and tens of thousands of Texans have sought refuge in shelters. There’s only $2.3 billion remaining in federal disaster coffer.

The disaster relief cut to finance the wall was proposed well before Harvey and the politically bad optics are sure to lead lawmakers to do an about face, though that would create a money crunch in homeland security accounts.

Jim Watson, AFP/Getty Images President Donald Trump holds the state flag of Texas outside of the Annaville Fire House after attending a briefing on Hurricane Harvey in Corpus Christi on Tuesday. Trump flew into storm-ravaged Texas in a show of solidarity and leadership in the face of the deadly devastation wrought by the storm.

Brendan Smialowski, AFP/Getty Images A truck driver walks while checking the depth of an underpass during the aftermath of Hurricane Harvey on Monday in Houston.

Brendan Smialowski, AFP/Getty Images People wait in line to shop at a Food Town grocery store during the aftermath of Hurricane Harvey on Aug. 30, 2017 in Houston, Texas. Monster storm Harvey made landfall again Wednesday in Louisiana, evoking painful memories of Hurricane Katrina's deadly strike 12 years ago, as time was running out in Texas to find survivors in the raging floodwaters.



Win McNamee, Getty Images The Tellez family is evacuated from their home after severe flooding following Hurricane Harvey in north Houston Aug. 29, 2017 in Houston, Texas. Harvey, which made landfall north of Corpus Christi late Friday evening, is expected to dump upwards of 40 inches of rain over the next couple of days.

Scott Olson, Getty Images People make their way out of a flooded neighborhood after it was inundated with rain water following Hurricane Harvey on Aug. 29, 2017 in Houston, Texas. Harvey, which made landfall north of Corpus Christi August 25, has dumped nearly 50 inches of rain in and around Houston.

HOUSTON, TX - AUGUST 29: A young man waits to be processed into the temporary shelter located at the Lakewood Church August 29, 2017 in Houston, Texas. Thousands of Houston area residents are currently residing in shelters due to flooding caused by the impact of Hurricane Harvey. (Photo by Win McNamee/Getty Images)



Brett Coomer, Houston Chronicle via AP A construction crew cleans out the home of Kenny Licona, which was flooded out from Tropical Storm Harvey on Wednesday, Aug. 30, 2017, in Spring, Texas.

Water from Addicks Reservoir flows into neighborhoods as floodwaters from Tropical Storm Harvey rise Tuesday, Aug. 29, 2017, in Houston.

David J. Phillip, The Associated Press Residents evacuate their homes near the Addicks Reservoir as floodwaters from Tropical Storm Harvey rise Tuesday, Aug. 29, 2017, in Houston.



A family hugs upon their arrival at a shelter at St. Thomas Presbyterian Church in west Houston after Harvey on Tuesday Aug. 29, 2017. Their home was flooded out the night before. ( Jay Janner/Austin American-Statesman via AP)

LM Otero, The Associated Press Volunteers Brenda Tcoc, right, and Hugo Wilson help sort bags of donated clothes for victims of the flooding from Tropical Storm Harvey after a shelter opened at the Lakewood Church in Houston, Texas, Tuesday, Aug. 29, 2017.

Evan Vucci, The Associated Press Supporters of President Donald Trump cheer outside Firehouse 5 in Corpus Christi, Texas, Tuesday, Aug. 29, 2017, as the president received a briefing on Harvey relief efforts.



Michael Ciaglo, Houston Chronicle via AP A rescuer moves Paulina Tamirano, 92, from a boat to a truck bed as people evacuate from rising waters from Tropical Storm Harvey, Tuesday, Aug. 29, 2017 in Houston.

Evan Vucci, The Associated Press President Donald Trump, accompanied by first lady Melania Trump, waves as they arrive on Air Force One at Corpus Christi International Airport in Corpus Christi, Texas, Tuesday, Aug. 29, 2017, for briefings on Hurricane Harvey relief efforts.

Evan Vucci, The Associated Press President Donald Trump, accompanied by, third from left, acting Homeland Security Secretary Elaine Duke, Texas Gov. Greg Abbott and first lady Melania Trump, participates in a briefing on Harvey relief efforts, Tuesday, Aug. 29, 2017, at Firehouse 5 in Corpus Christi, Texas.



Jay Janner, Austin American-Statesman via AP Thomas Luna, right, rescues Bobby Nelson, 78, from his flooded home in the Ravensway neighborhood in northwest Houston on Monday. Luna brought a fishing boat to the neighborhood to assist with the rescue effort.

Brendan Smialowski, AFP/Getty Images A woman walks through a rain storm during the aftermath of Hurricane Harvey on Aug. 28, 2017 in Houston, Texas.

Win McNamee, Getty Images A volunteer carries a woman whose home was impacted by severe flooding following Hurricane Harvey in north Houston August 29, 2017 in Houston, Texas. Parts of southeast Texas have received more than 40 inches of rain since Harvey made landfall on Friday, with more torrential rain expected the next several days.



Joe Raedle, Getty Images People wait to be rescued from their flooded homes after the area was inundated with flooding from Hurricane Harvey on Aug. 28, 2017 in Houston, Texas. Harvey, which made landfall north of Corpus Christi late Friday evening, is expected to dump upwards to 40 inches of rain in Texas over the next couple of days.

Gabe Hernandez, Corpus Christi Caller-Times via AP This aerial photo shows damaged homes in the wake of Hurricane Harvey, Monday, Aug. 28, 2017, in Corpus Christi, Texas. Harvey hit the coast as a Category 4 hurricane.

Gabe Hernandez, Corpus Christi Caller-Times via AP This aerial photo shows damaged boats along a dock in the wake of Hurricane Harvey, Monday, Aug. 28, 2017, in Corpus Christi, Texas. Harvey hit the coast as a Category 4 hurricane.



Nick Wagner, Austin American-Statesman via AP Genice Gipson comforts her lifelong friend, Loretta Capistran, outside of Capistran's apartment complex in Refugio, Texas, on Monday, Aug. 28, 2017. "We got to be strong, baby," Gipson told Capistran.

LM Otero, The Associated Press People rest at the George R. Brown Convention Center that has been set up as a shelter for evacuees escaping the floodwaters from Tropical Storm Harvey in Houston on Tuesday, Aug. 29, 2017.

David J. Phillip, The Associated Press Rescue boats fill a flooded street as flood victims are evacuated as floodwaters from Tropical Storm Harvey rise Monday, Aug. 28, 2017, in Houston.



Cattle is seen on land amid flooding from the Colorado River in La Grange, Texas, Monday, Aug. 28, 2017, after floodwaters from Tropical Storm Harvey inundated the area. Floodwaters reached the rooflines of single-story homes Monday and people could be heard pleading for help from inside as Harvey poured rain on the Houston area for a fourth consecutive day after a chaotic weekend of rising water and rescues.

Harvey aid is a fresh addition to an agenda already packed with must-do tasks and multiple legislative deadlines: Passing a stopgap spending bill to avert a government shutdown; increasing the government’s borrowing authority to prevent a market-quaking default on U.S. obligations; and paving the way for a GOP rewrite of the U.S. tax code.

Trump is slated to meet with congressional leaders next Wednesday. The meeting follows a recess that has seen Trump lambast several top Republicans, especially Senate Majority Leader Mitch McConnell, R-Ky., after the collapse of the GOP health care bill in his chamber. That has wounded the president’s relationship with his own party, and the coming weeks should offer a test of how much clout he has with fellow Republicans.

McConnell is scheduled to attend next Wednesday morning’s White House meeting, according to congressional aides. Also going are House Speaker Paul Ryan, R-Wis., Senate Minority Leader Chuck Schumer, D-N.Y., and House Minority Leader Nancy Pelosi, D-Calif., the aides said. They spoke on condition of anonymity to describe a meeting that hadn’t yet been announced.

Texas Sen. John Cornyn, the chamber’s No. 2 Republican, is pressing for an emergency infusion of disaster aid pending estimates of longer-term rebuilding costs.

Despite Trump’s promise at a rally in Phoenix last week to build a wall along the U.S.-Mexico border even “if we have to close down our government,” congressional Republicans are optimistic of averting a politically damaging shutdown after the fiscal year ends Sept. 30.

For one thing, most Republicans, including Trump, want to move on to a sweeping revamp of the tax code, and a shutdown debacle would only make tax legislation more difficult. A tax overhaul, cutting rates for individuals and businesses while erasing numerous tax breaks and loopholes, is difficult enough as it stands.

Like the failed push to repeal former President Barack Obama’s health care law, the tax effort is likely to encounter strong Democratic opposition and divisions among Republicans, leaving its fate uncertain.

The massive, ongoing flooding caused by Harvey means that officials still don’t know how much aid the metropolis will need to recover, but it’s expected to be many billions of dollars. A possible outcome is one or even two infusions of immediate aid next month, with a longer-term recovery package coming by year’s end.