The Senate voted 63-33 to advance an emergency spending bill that would provide $2.7 billion in funding for the crisis at the border.

More than 10 Republicans joined Democrats in voting to end debate on the motion to proceed to the bill. Sens. Mary LandrieuMary LandrieuCNN producer on new O'Keefe video: Voters are 'stupid,' Trump is 'crazy' CNN's Van Jones: O'Keefe Russia 'nothingburger' video 'a hoax' Trump posts O'Keefe videos on Instagram MORE (D-La.) and Kay HaganKay HaganLinking repatriation to job creation Former Sen. Kay Hagan in ICU after being rushed to hospital GOP senator floats retiring over gridlock MORE (D-N.C.), who are up for reelection in November, voted against proceeding to the bill.

The border bill includes $615 million in emergency funding to combat wildfires in the west and $225 million for Israel’s Iron Dome rocket defense system, bringing the total cost of the legislation to more than $3.5 billion.

The House is moving forward with a rival border bill that would provide $659 million, with most of the money going toward border security rather than assistance for the detained children.

The House bill also contains changes to a 2008 immigration law that Democrats have rejected, raising the strong possibility that Congress could break for the August recess with the border funding up in the air.

Senate Majority Leader Harry ReidHarry ReidThe Memo: Trump pulls off a stone-cold stunner The Memo: Ending DACA a risky move for Trump Manchin pressed from both sides in reelection fight MORE (D-Nev.) has said he wants to provide funding to federal agencies before the August recess lest they run out of funds to provide legal services, housing and food to the children in detention.

The White House originally asked for $3.7 billion in funding, but the bill provides funding only for this year.

Republicans balked at that level of funding and accused Obama of asking for a “blank check” that fails to address the root causes of the immigration surge.

Senate Republicans have introduced several bills that they want to offer as amendments to the border measure.

Sen. John CornynJohn CornynNew GOP ObamaCare repeal bill gains momentum Week ahead: Senators near deal to stabilize ObamaCare markets GOP eying 'blue slip' break to help Trump fill the courts MORE’s (R-Texas) bill would amend a 2008 human trafficking law so that the children from Central America cannot seek refugee status. He said his bill would also allow their asylum hearings to be expedited so that they can be quickly deported.

"People are losing their lives," Cornyn said Wednesday. "It is the opposite of compassion to allow this loophole to exist."

Sen. Ted CruzRafael (Ted) Edward CruzSenate Dems hold floor talk-a-thon against latest ObamaCare repeal bill Overnight Finance: CBO to release limited analysis of ObamaCare repeal bill | DOJ investigates Equifax stock sales | House weighs tougher rules for banks dealing with North Korea GOP state lawmakers meet to plan possible constitutional convention MORE’s (R-Texas) bill includes similar language to Cornyn’s, but also bans the administration from spending money on its deferred action program. President Obama has issued an executive order to defer the deportation of “dreamers” — immigrant children who were brought to the United States by their parents illegally prior to 2007. Cruz has said he wants all of those children deported immediately.

With the parties divided over policy changes, congressional leaders have sought to gain the upper hand on the border issue before the recess.

Reid said Tuesday that he could use the House bill as a vehicle for the bipartisan Senate immigration reform bill that passed last year. The House has refused to vote on that Senate-passed measure.

Speaker John BoehnerJohn Andrew BoehnerSpeculation mounts, but Ryan’s job seen as safe Boehner warns Trump: Don't pull out of Korea-US trade deal GOP Rep: Ryan wasting taxpayers dollars by blocking war authorization debate MORE (R-Ohio) said Reid was trying to tank the House bill.