The Senate moved closer to passage of comprehensive immigration reform legislation on Wednesday by approving a “border security surge” in a 69-29 vote.

Fifteen Republicans voted for the major amendment, putting the Gang of Eight close to their target of winning 70 votes for final passage. The Senate also defeated a GOP budget point of order that sought to stop the immigration measure.

“This is really America at its best. Each one of those eight senators don’t know, just as I don’t know, whether this work will help them or hurt them in their political careers,” Senate Majority Leader Harry ReidHarry ReidBill O'Reilly: Politics helped kill Kate Steinle, Zarate just pulled the trigger Tax reform is nightmare Déjà vu for Puerto Rico Ex-Obama and Reid staffers: McConnell would pretend to be busy to avoid meeting with Obama MORE (D-Nev.) said ahead of the vote. “But we have a broken immigration system, and they have come up with a solution to fix it.”

Crafted by Sens. Bob CorkerRobert (Bob) Phillips CorkerFormer Dem Tenn. gov to launch Senate bid: report McConnell 'almost certain' GOP will pass tax reform Former New Mexico gov: Trump's foreign policy is getting 'criticized by everybody' MORE (R-Tenn.) and John HoevenJohn Henry HoevenMcConnell works to salvage tax bill GOP to reduce tax relief by 0B to win over deficit hawks  The Hill's Whip List: Where Republicans stand on Senate tax bill MORE (R-N.D.), the border security plan authorizes increasing the number of border patrol agents by 20,000 and constructing 700 miles of fencing. Those border security measures would have to be met within 10 years in order for immigrants to apply for green cards.

ADVERTISEMENT
The amendment adds $38 billion in security spending to the $8 billion previously included in the bill. At a minimum, it requires the implementation of $4.5 billion worth of technology and equipment to achieve full surveillance of the border.

“Nobody in this body can say that in this amendment we’re voting on today, that we don’t do anything related to border security in this bill,” Corker said.

The Republicans who voted “yes” were Sens. John McCainJohn Sidney McCainGOP strategist donates to Alabama Democrat Meghan McCain knocks Bannon: 'Who the hell are you' to criticize Romney? Dems demand Tillerson end State hiring freeze, consult with Congress MORE (Ariz.), Lindsey GrahamLindsey Olin GrahamGOP and Dems bitterly divided by immigration We are running out of time to protect Dreamers US trade deficit rises on record imports from China MORE (S.C.), Marco RubioMarco Antonio RubioRyan pledges 'entitlement reform' in 2018 Richard Gere welcomes lawmakers' words of support for Tibet Dem lawmaker gives McConnell's tax reform op-ed a failing grade MORE (Fla.), Jeff FlakeJeffrey (Jeff) Lane FlakeGOP strategist donates to Alabama Democrat Sasse: RNC help for Roy Moore 'doesn't make any sense' Sasse calls RNC decision to resume support for Moore 'bad' and 'sad' MORE (Ariz.) — the four GOP authors of the underlying legislation — and Sens. Bob Corker (Tenn.), Kelly AyotteKelly Ann AyotteExplaining Democratic victories: It’s gun violence, stupid Trump voter fraud panel member fights back against critics Dems plan to make gun control an issue in Nevada MORE (N.H.), Jeff Chiesa (N.J.), Susan CollinsSusan Margaret CollinsOvernight Health Care: 3.6M signed up for ObamaCare in first month | Ryan pledges 'entitlement reform' next year | Dems push for more money to fight opioids Study: ObamaCare bills backed by Collins would lower premiums Right scrambles GOP budget strategy MORE (Maine), Orrin HatchOrrin Grant HatchMcConnell names Senate GOP tax conferees Ryan pledges 'entitlement reform' in 2018 Utah governor calls Bannon a 'bigot' after attacks on Romney MORE (Utah), Dean HellerDean Arthur HellerDems look to use Moore against GOP Senate hearing shows Fed chair nominee acts the part Senate GOP votes to begin debate on tax bill MORE (Nev.), Mark KirkMark KirkHigh stakes as Trump heads to Hill Five things to watch for at Trump-Senate GOP meeting Giffords, Scalise highlight party differences on guns MORE (Ill.), John Hoeven (N.D.), Lisa MurkowskiLisa Ann MurkowskiMcConnell names Senate GOP tax conferees Week ahead: Trump expected to shrink two national monuments GOP on verge of opening Arctic refuge to drilling MORE (Alaska), Roger WickerRoger Frederick WickerSenator predicts Congress will wrap up tax work in two weeks The Hill's Whip List: Where Republicans stand on Senate tax bill US warship collides with Japanese tug boat MORE (Miss.) and Lamar AlexanderAndrew (Lamar) Lamar AlexanderOvernight Finance: Trump says shutdown 'could happen' | Ryan, conservatives inch closer to spending deal | Senate approves motion to go to tax conference | Ryan promises 'entitlement reform' in 2018 Senate approves motion to go to tax conference House conservatives, Ryan inch closer toward spending deal MORE (Tenn.).

Many of the Republicans who voted against the amendment are harshly critical of the overall bill. Sens. Jeff SessionsJefferson (Jeff) Beauregard SessionsGOP strategist donates to Alabama Democrat House passes concealed carry gun bill Rosenstein to testify before House Judiciary Committee next week MORE (R-Ala.) and Chuck GrassleyCharles (Chuck) Ernest GrassleyGrassley blasts Democrats over unwillingness to probe Clinton GOP and Dems bitterly divided by immigration Thanks to the farm lobby, the US is stuck with a broken ethanol policy MORE (R-Iowa) say it repeats to mistakes of the last major immigration reform in 1986 by making border enforcement “promises” and offering “legalization first.”

“It continues false promises of a secured border,” Grassley said Wednesday. “It ought to be enforcement now and legalization later.”

To lure more GOP votes, language from other senators was included in the security amendment. One of the changes to the bill restricts certain nonimmigrant visa holders, such as tourists and foreign students, from accessing Medicaid programs and Affordable Care Act benefits.

Democrats won changes as well. Sen. Bernie SandersBernard (Bernie) SandersSchumer: Franken should resign Franken resignation could upend Minnesota races Avalanche of Democratic senators say Franken should resign MORE (I-Vt.) secured language to provide $1.5 billion in grants to state workforce investment boards to help young people find jobs over the next two years.

The amendment also includes a provision from Alaska Sens. Mark BegichMark Peter BegichPerez creates advisory team for DNC transition The future of the Arctic 2016’s battle for the Senate: A shifting map MORE (D) and Lisa Murkowski (R) that allows summer workers on J-1 visas to work in fish processing plants in their state. Critics have dubbed it the “Crabhusker kickback.”

The Senate also voted 67-31 Wednesday to end debate on the Senate Judiciary Committee reported substitute amendment to S. 744, setting up a final vote on the measure as early as Thursday.

Managers of the immigration bill are working on a deal to allow a few more amendment votes, setting up a final cloture vote that will happen Thursday on the modified bill. If a deal isn’t reached, final passage will happen Friday instead of Thursday.

Later Wednesday evening, Reid tried to set up votes on 32 amendments — 16 of which were from Republicans — but Grassley objected saying the amendment process had not been as "fair and open" as promised.

"The majority party has offered an agreement that in our view is insufficient," Grassley said. "I feel a bit used and abused in this process for 2.5 weeks we’ve been pushing to get votes on our amendments. We’ve had a measly 10 votes on amendments.

"I’m still willing to negotiate votes, but it will need to be a lot of votes. … In the end we may very well not be having anymore amendment."

The majority leader also said he hopes the House “will follow the Senate’s lead and work to pass bipartisan reform.”

But Grassley said the House would have to rectify the Senate’s “miserable failure.”

“The House of Representatives is going to be the deliberative body on immigration reform and it’s going to put the Senate to shame,” Grassley said.

— This story was updated at 5:18 p.m.