ald Trump attends the Republican Hindu Coalition's Humanity United Against Terror Charity event on October 15, 2016 at the New Jersey Convention & Expo Center in Edison, New Jersey. Trump also campaigned today in New Hampshire and Maine. (Photo by Kena Betancur/Getty Images)
Trump: US will be top of the pack with nukes
donald trump picks h.r. mcmaster new national security adviser sot_00000000.jpg
Who is H.R. McMaster?
nr brooke blog ex spy chief slams obama ISIS strategy_00000320.jpg
How Michael Flynn lost his job in 23 days
leon panetta tsr
Panetta: White House not prepared for crisis
WASHINGTON, DC - NOVEMBER 10: U.S. President Barack Obama (R) shakes hands with President-elect Donald Trump (L) following a meeting in the Oval Office November 10, 2016 in Washington, DC. Trump is scheduled to meet with members of the Republican leadership in Congress later today on Capitol Hill. (Photo by Win McNamee/Getty Images)
The importance of the national security transition
GRAND RAPIDS, MI - DECEMBER 9: President-elect Donald Trump looks on during a rally at the DeltaPlex Arena, December 9, 2016 in Grand Rapids, Michigan. President-elect Donald Trump is continuing his victory tour across the country. (Photo by Drew Angerer/Getty Images)
Trump campaign aides communicated with Russians
Republican presidential candidate Donald Trump addresses a rally against the Iran nuclear deal on the West Lawn of the U.S. Capitol September 9, 2015 in Washington, D.C.
Can Trump be trusted with nuclear weapons?
Rep. Mike Pompeo holds a press conference at the U.S. Capitol on March 1, 2012.
Who is Trump's pick for CIA director?
house passes surveillance bill ath sot_00000000.jpg
House passes controversial surveillance bill
US President Donald Trump speaks about his administration's National Security Strategy at the Ronald Reagan Building and International Trade Center in Washington, DC, December 18, 2017.
President Donald Trump rolled out his first "National Security Strategy", a combative document designed to put meat on the bones of his "America First" sloganeering.
Trump unveils national security plan
Trump governors
Trump: We have to start winning wars again
US President Donald Trump watches as Treasury Secretary Steven Mnuchin speaks after taking the oath of office in the Oval Office of the White House on February 13, 2017 in Washington, DC. / AFP PHOTO / MANDEL NGANMANDEL NGAN/AFP/Getty Images
Trump's plan to defeat ISIS due soon
US President Donald Trump shakes hands with US Army Lieutenant General H.R. McMaster (L) as his national security adviser at his Mar-a-Lago resort in Palm Beach, Florida, on February 20, 2017. / AFP / NICHOLAS KAMM
NSA McMaster breaks with Trump on Islam
The Navy's Official Seal
Trump's nominee for Navy secretary withdraws
CIA analyst quits, blames President Trump
McMaster: It's OK to want to beat terrorists
EDISON, NJ - OCTOBER 15: Republican presidential candidate Donald Trump attends the Republican Hindu Coalition's Humanity United Against Terror Charity event on October 15, 2016 at the New Jersey Convention & Expo Center in Edison, New Jersey. Trump also campaigned today in New Hampshire and Maine. (Photo by Kena Betancur/Getty Images)
Trump: US will be top of the pack with nukes
donald trump picks h.r. mcmaster new national security adviser sot_00000000.jpg
Who is H.R. McMaster?
nr brooke blog ex spy chief slams obama ISIS strategy_00000320.jpg
How Michael Flynn lost his job in 23 days
leon panetta tsr
Panetta: White House not prepared for crisis
WASHINGTON, DC - NOVEMBER 10: U.S. President Barack Obama (R) shakes hands with President-elect Donald Trump (L) following a meeting in the Oval Office November 10, 2016 in Washington, DC. Trump is scheduled to meet with members of the Republican leadership in Congress later today on Capitol Hill. (Photo by Win McNamee/Getty Images)
The importance of the national security transition
GRAND RAPIDS, MI - DECEMBER 9: President-elect Donald Trump looks on during a rally at the DeltaPlex Arena, December 9, 2016 in Grand Rapids, Michigan. President-elect Donald Trump is continuing his victory tour across the country. (Photo by Drew Angerer/Getty Images)
Trump campaign aides communicated with Russians
Republican presidential candidate Donald Trump addresses a rally against the Iran nuclear deal on the West Lawn of the U.S. Capitol September 9, 2015 in Washington, D.C.
Can Trump be trusted with nuclear weapons?
Rep. Mike Pompeo holds a press conference at the U.S. Capitol on March 1, 2012.
Who is Trump's pick for CIA director?
house passes surveillance bill ath sot_00000000.jpg
House passes controversial surveillance bill
US President Donald Trump speaks about his administration's National Security Strategy at the Ronald Reagan Building and International Trade Center in Washington, DC, December 18, 2017.
President Donald Trump rolled out his first "National Security Strategy", a combative document designed to put meat on the bones of his "America First" sloganeering.
Trump unveils national security plan
Trump governors
Trump: We have to start winning wars again
US President Donald Trump watches as Treasury Secretary Steven Mnuchin speaks after taking the oath of office in the Oval Office of the White House on February 13, 2017 in Washington, DC. / AFP PHOTO / MANDEL NGANMANDEL NGAN/AFP/Getty Images
Trump's plan to defeat ISIS due soon
US President Donald Trump shakes hands with US Army Lieutenant General H.R. McMaster (L) as his national security adviser at his Mar-a-Lago resort in Palm Beach, Florida, on February 20, 2017. / AFP / NICHOLAS KAMM
NSA McMaster breaks with Trump on Islam
The Navy's Official Seal
Trump's nominee for Navy secretary withdraws
CIA analyst quits, blames President Trump
McMaster: It's OK to want to beat terrorists
STORY HIGHLIGHTS
GOP leaders spent recent weeks rounding up the votes for FISA re-authorization
Trump's tweet may give cover to Republicans who want to vote against the bill
(CNN)The House of Representatives passed legislation reauthorizing the Foreign Intelligence Surveillance Act, which is a key tool of the US intelligence community, despite President Donald Trump's tweeted criticism of the government's surveillance program.
The vote was 256-164. It now goes to the Senate for consideration.
House Republican leaders and top administration officials believed early Thursday morning that they were in good shape to pass the plan, even though it faced opposition from the right and the left and is always a heavy legislative lift.
And then Trump tweeted.
The President's tweet at 7:33 a.m. ET that questioned the already contentious program came at the worst time for GOP leaders who spent recent weeks rounding up the votes and combating demands for changes from conservatives and libertarian elements of the conference. The White House and law enforcement agencies have also been working the Hill and securing support from both sides of the aisle.
RELATED: Trump's FISA tweets throw Washington into chaos
"'House votes on controversial FISA ACT today.' This is the act that may have been used, with the help of the discredited and phony Dossier, to so badly surveil and abuse the Trump Campaign by the previous administration and others?" Trump tweeted.
House Speaker Paul Ryan and Trump spoke following his first tweet on FISA, according to a source familiar. A separate source confirmed that Trump initiated the call.
House Minority Leader Nancy Pelosi, on the House floor, at one point urged lawmakers earlier on Thursday to send the bill back to committee and make more changes. A senior Democratic source tells CNN Pelosi also called Ryan and urged him to pull the bill in light of the President's tweet. Pelosi announced shortly thereafter that she would support the bill.
Trump's FISA tweets throw Washington into chaos
Trump's FISA tweets throw Washington into chaos
As part of the negotiations with conservatives, Republican leaders allowed one amendment with the changes the bill's opponents wanted to get a vote -- with the assumption it would fail but would at least give these members the chance to say they got something. And the White House statement Wednesday night going on record against that amendment was a further effort to make it clear Trump supported the bill and not the effort to kill it with major changes. That amendment failed Thursday morning following comments Ryan made saying its passage would kill the overall bill.
At 9:14 a.m. ET, the President, in a tweet, appeared to walk back his earlier criticism, tweeting, "With that being said, I have personally directed the fix to the unmasking process since taking office and today's vote is about foreign surveillance of foreign bad guys on foreign land. We need it! Get smart!"
Paul readies fight in Senate
Shortly after the House vote on the amendment, Sen. Rand Paul, a Kentucky Republican known for libertarian stances on surveillance issues, reiterated his threat to filibuster the bill on the Senate side.
"No American should have their right to privacy taken away! #FILIBUSTER" he tweeted.
Paul has been leading an effort, alongside Sen. Ron Wyden, an Oregon Democrat, for his own amendment in the Senate, which has a little over a dozen senators from both parties as co-sponsors.
Ahead of the House vote Thursday morning, other senators were largely in favor of reauthorization, though some acknowledged there was debate over whether it should be reformed.
"We've got to renew. Question is do we change it or not. I was confused by those tweets as well," said Sen. Jeff Flake, an Arizona Republican.