Sen.(R-Ariz.) saidthat he will support the Republican tax plan, handing leadership the 50th vote needed to pass the bill.

I am pleased to announce I will vote in support the tax reform bill," he said in a statement.

Flake's decision officially gives Majority Leader(Ky.) the 50 out of 52 GOP senators he needs to let Vice President Pence break a tie on the legislation.

Republicans had to kick work on the tax plan intowhen deficit hawks led by Sen.(R-Tenn.) threatened to kill the bill during an unexpected floor showdownevening.

Republicans are expected to pass their tax plan as soon as Friday .

Leadership appeared confident on Friday morning that they had the votes to pass their tax plan.

"We have the votes," McConnell told reporters after a closed-door caucus meeting.

GOP Sens. Corker and Susan Collins Susan Margaret CollinsGraham: GOP will confirm Trump's Supreme Court nominee before the election Gardner signals support for taking up Supreme Court nominee this year Tumultuous court battle upends fight for Senate MORE (Maine) have not said how they will vote on the tax legislation.

Flake said in addition to getting rid of an $85 billion "budget gimmick," he had also secured an agreement to work on a legislative fix for the Deferred Action for Childhood Arrivals (DACA) program.

"The second was to obtain a firm commitment from the Senate Leadership and the administration to work with me on a growth-oriented legislative solution to enact fair and permanent protections for DACA recipients," he said.

The Trump administration announced earlier this year that it would end the DACA program.

A group of Senate Republicans, led by Sen. Chuck Grassley Charles (Chuck) Ernest GrassleyGardner signals support for taking up Supreme Court nominee this year Grassley, Ernst pledge to 'evaluate' Trump's Supreme Court nominee McConnell digs in on vow to fill Ginsburg's Supreme Court seat MORE (R-Iowa), made an offer to Sen. Dick Durbin Richard (Dick) Joseph DurbinTumultuous court battle upends fight for Senate McConnell focuses on confirming judicial nominees with COVID-19 talks stalled Senate Republicans signal openness to working with Biden MORE (D-Ill.) that would pair much of Sen. John Cornyn John CornynTumultuous court battle upends fight for Senate Texas Democrats roll out first wave of planned digital ads as Election Day nears Calls grow for Biden to expand election map in final sprint MORE's (R-Texas) border security bill with an immigration fix that did not include a path to citizenship.

Some House Democrats, and a growing number of Senate progressives, have pledged to oppose any government spending bill without a deal on DACA.