In a move welcomed by civil liberties advocates, a bipartisan group of lawmakers introduced legislation to end once and for all the National Security Agency's authority for mass surveillance of Americans' phone records.

"It's a welcome and necessary first-step in a longer fight to dismantle the U.S. government's sprawling surveillance state," said Fight for the Future campaigner Laila Abdelaziz.

Entitled the "Ending Mass Collection of Americans' Phone Records Act," the legislation was introduced Thursday in the Senate by Ron Wyden (D-Ore.) and Rand Paul (R-Ky.), while Reps. Justin Amash (R-Mich.) and Zoe Lofgren (D-Calif.) introduced a companion measure in the House.

"The NSA's sprawling phone records dragnet was born in secrecy, defended with lies, and never stopped a single terrorist attack," Wyden said in a statement.

"Even after Congress acted in 2015, the program collected over half a billion phone records in a single year. It's time, finally, to put a stake in the heart of this unnecessary government surveillance program and start to restore some of Americans' liberties," he said.

"In particular," as Spencer Ackerman reported for The Daily Beast,

The Call Detail Records (CDR) program—which uses the authority of Section 215 of the PATRIOT Act—said Free Presss Action's Sandra Fulton, "represents an egregious violation of our rights and it must end."

"Even if the NSA has reportedly stopped using this dragnet approach now," she continued, "we need the certainty that this bill provides against it restarting on the basis of Section 215 or some other government theory."

Fight for the Future's Abdelaziz said her group hopes the measure "is the first-step in many others taken by this Congress to end the USA PATRIOT Act and restore key civil liberties required for a healthy democratic society."

The ACLU agreed that ending the phone spying "should be a no-brainer for Congress."

"But just ending that one authority isn't enough," the group added.