President Donald Trump signed into law Friday a reauthorization of a controversial intelligence directive.

Trump tweeted the news Friday, one day after the Senate passed Section 702 of the Foreign Intelligence Surveillance Act by a 65-34 vote.

Just signed 702 Bill to reauthorize foreign intelligence collection. This is NOT the same FISA law that was so wrongly abused during the election. I will always do the right thing for our country and put the safety of the American people first! — Donald J. Trump (@realDonaldTrump) January 19, 2018

This section of FISA grants U.S. intelligence agencies the power to spy on communications of non-citizen foreign targets outside the country. The measure passed in the House last week despite some confusion over two tweets posted by Trump.

Trump and many Republicans have been critical of FISA laws during the past year over allegations that the FBI obtained FISA warrants to spy on members of the Trump campaign.