The California State Senate passed legislation on Tuesday imposing strict regulations on how law enforcement and other government agencies can use drones, a move supporters said will protect privacy and prevent warrantless surveillance.

The bill attracted bipartisan support in the Senate, passing 25-8 during the evening vote in Sacramento.

The legislation would require law enforcement agencies to obtain a warrant before using an unmanned aircraft, or drone, except in emergencies such as a fire or a hostage-taking.