Updated at 6:19 p.m. on Saturday.

WASHINGTON — In the wake of Hurricane Sandy, a storm that hit New Jersey and New York in 2012, eight Texas Republicans voted against increasing flood insurance, and 23 voted against emergency funding for victims.

Both measures ultimately passed the House and Senate before being signed into law by President Obama. But the history of votes against flood insurance benefiting other needy states could come back to haunt Texas members of Congress should they have to apply for federal funding themselves after Hurricane Harvey. Projected damages from the storm could reach nearly $40 billion.

The first bill funding Sandy aid granted the Federal Emergency Management Agency a temporary $9.7 billion increase in borrowing authority for the National Flood Insurance Program, passing 354-67 in the House and by voice vote in the Senate.

Republican Reps. Mike Conaway of Midland, Bill Flores of Bryan, Louie Gohmert of Tyler, Kenny Marchant of Coppell, Mac Thornberry of Clarendon, Randy Weber of Pearland, and Roger Williams of Austin voted no on the bill, as did former Rep. Randy Neugebauer of Lubbock.

The second bill provided $17 billion in emergency funding for Hurricane Sandy victims and communities, passing the House 241-180 and the Senate 62-36.

While Texas Sen. John Cornyn and former Sen. Kay Bailey Hutchison both supported a previous Senate version of the bill, Cornyn and Sen. Ted Cruz voted no to the House bill, taking issue with new provisions.

"Emergency relief for the families who are suffering from this natural disaster should not be used as a Christmas tree for billions in unrelated spending," Cruz said in a statement at the time. "The United States Senate should not be in the business of exploiting victims of natural disasters to fund pork projects that further expand our debt."

With the exception of Houston Rep. John Culberson, all Texas Republicans in Congress at the time voted against the bill. All but three are still in office today.

Despite the fact that Texas is prone to big natural disasters, lawmakers have stood by their votes .

Weber, whose coastal district will be affected by Hurricane Harvey and has been racked by flooding in the past, called for President Obama to back a FEMA funding bill in October 2013. He defended his vote against the Sandy relief bill because it raised the deficit and was “full of pork.”

"We're continually bailing out this program and it's clear that it's no longer solvent," Heather Vaughan, a spokeswoman for Neugebauer, said after the votes. Neugebauer co-sponsored the program's expansion in 2005 after Hurricane Emily hit Texas, but not in 2013 for Sandy.

Several of the dissenters had previously pushed for flood funding when it affected Texas. The 32-member Texas delegation urged then-President George Bush to fund flooded areas in Texas in 2007.

Gohmert, who voted against both measures, pushed then-Gov. Rick Perry and then-President George W. Bush to include eight additional counties in those that could apply to receive FEMA funding in 2008.

Marchant, who also voted against both, signed a 2010 letter along with Reps. Joe Barton of Arlington, Michael Burgess of Pilot Point, Kay Granger of Fort Worth and Lamar Smith asking Obama to support Perry's request for a federal disaster declaration for 13 Texas counties affected by Tropical Storm Hermine.

In 2011, Thornberry blasted Obama's rejection of a Texas wildfire declaration that would have qualified counties for federal assistance.

CORRECTION, 6:58 p.m., Aug. 26, 2017: An earlier version of this story incorrectly said Hurricane Sandy was in 2015. It was in 2012.