A proposed bill wending its way through the California state legislature would require the federal government to obtain a warrant from a judge before state law enforcement and other officials would aid them in searching the cellphone and computer records of residents, according to a report by Reuters.

The state Senate gave a nod to the bill Monday, just one vote shy of unanimously agreeing to pass the bill. Introduced by state Sens. Ted Lieu., D-Torrance, and Joel Anderson, R-San Diego, the California legislation is one of eight similar bills being mulled over by lawmakers throughout various states, but is further along in the legislative process.

Noting that the NSA's phone data collection program, “is a threat to our liberty and freedom,” Lieu ushered in the bill on Fourth Amendment grounds. The California District Attorneys Association had voiced opposition to the bill, claiming it lacked clarity, Reuters said.