The U.S. House of Representatives voted unanimously on Wednesday to require law enforcement authorities to get a search warrant before asking technology companies to hand over old emails.

The bill's prospects in the Senate remain unclear, though the 419-0 vote in the House was likely to put pressure on the upper chamber to approve it.

Under the Email Privacy Act, which updates a decades-old law, authorities would have to get a warrant to access emails or other digital communications more than 180 days old. At present, agencies such as the U.S. Justice Department and the Securities and Exchange Commission only need a subpoena to seek such data from a service provider.