earlyripped the Federal Intelligence Surveillance Act (FISA) ahead of the House vote to reauthorize a key provision of the law — one day after his own White House called for its passage.

Trump in his tweet suggested that the law might have been used to spy on his campaign.

"'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?" the president tweeted.

“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? — Donald J. Trump (@realDonaldTrump) January 11, 2018

But in subsequent tweet, Trump said the House vote "is about foreign surveillance of foreign bad guys on foreign land.”

“We need it!”

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! — Donald J. Trump (@realDonaldTrump) January 11, 2018

The House is set to vote Thursday on renewing what's known as Section 702 of FISA, a law that allows the National Security Agency to collect texts and emails of foreigners abroad without an individualized warrant, even when they communicate with Americans in the U.S.

Some Republicans have speculated that the Obama administration learned of former national security adviser Michael Flynn's calls with Russia's ambassador to the U.S. through Section 702. Flynn resigned after acknowledging he had misled members of the administration about his talks with the ambassador and has pled guilty to making false statements to the FBI as part of special counsel Robert Mueller Robert (Bob) MuellerCNN's Toobin warns McCabe is in 'perilous condition' with emboldened Trump CNN anchor rips Trump over Stone while evoking Clinton-Lynch tarmac meeting The Hill's 12:30 Report: New Hampshire fallout MORE's investigation.

The legislation to be considered by the House includes some small changes meant to appeal to critics of the law. It would require the FBI to obtain a court order before reviewing the content of queries for Americans’ information in the database — though an order would not be required to search the database in the first place — and allow such an order only when investigators want to use the information in a criminal case.

A number of lawmakers do not think that goes far enough, however, and a bipartisan amendment, backed by Rep. Justin Amash Justin AmashOn The Trail: How Nancy Pelosi could improbably become president History is on Edward Snowden's side: Now it's time to give him a full pardon Trump says he's considering Snowden pardon MORE (R-Mich.), imposing restrictions designed to protect Americans who are swept up in government spying on foreigners overseas will also get a vote.

ADVERTISEMENT

Trump's White House has been aggressively lobbying for months for a clean, permanent renewal of the 702 authority, which the intelligence community maintains is critical to identifying and disrupting terror plots. Lawmakers have long said that is a nonstarter in the House.

In a statement late Wednesday , press secretary Sarah Huckabee Sanders said the administration "strongly opposes" the privacy amendment and called for it to be rejected.

"This amendment would re-establish the walls between intelligence and law enforcement that our country knocked down following the attacks of 9/11 in order to increase information sharing and improve our national security," Sanders said. "The Administration urges the House to reject this amendment and preserve the useful role FISA’s Section 702 authority plays in protecting American lives."

The Amash-backed language would require investigators to obtain a warrant in order to search the 702 database for Americans’ information in criminal cases.

This report was updated at 9:20 a.m.