The measure has long been criticised for allowing US intelligence agencies to collect citizen data without a warrant.