Federal prosecutors prevailed Friday in their yearlong fight to force Google Inc. to turn over the emails of an indicted Republican consultant with close ties to Ron and Rand Paul.

U.S. District Judge John Jarvey rejected a request to quash a warrant ordering Google to give the FBI the contents of Jesse Benton's Gmail account, which he used to work on Ron Paul's 2012 presidential campaign and Senate Majority Leader Mitch McConnell's 2014 re-election bid.

Benton had been leading a super PAC supporting Rand Paul's presidential campaign until he was indicted earlier this month. He and two other top aides from Ron Paul's 2012 campaign are charged with conspiring to secretly pay off an Iowa state senator to endorse Paul before that year's Iowa caucuses. They pleaded not guilty in an Iowa federal court.

Under Jarvey's order, Google will be legally required to divulge tens of thousands of emails sent and received by Benton between March 2011 and July 2014.

Guy Cook, a lawyer for Google, said Friday that the company would respect the order. Lawyers for Benton and the Justice Department declined to comment.

Jarvey's ruling appears to end a dispute that has gotten attention in libertarian and technology circles as a test of the government's ability to broadly review email accounts during criminal investigations.

Benton gave the FBI permission to search the account last year, but he withdrew it days later after investigators started combing through his email. An FBI agent then applied for a warrant to search and seize parts of the account, which a magistrate judge approved based on probable cause that a crime was committed.

After Google received the warrant, the company told Benton that it intended to comply with the request unless he filed a legal challenge. Benton's attorney filed a motion to quash the warrant, arguing that it was overly broad, violated his privacy rights and amounted to a fishing expedition.

Prosecutors argued that the warrant was lawful and tailored to the evidence of wrongdoing they had uncovered related to improper payments to Sen. Kent Sorenson, who flipped from supporting Michele Bachmann to Ron Paul days before the 2012 caucuses.

U.S. Magistrate Judge Helen Adams upheld the warrant Aug. 10. Google then sought to give Benton time to appeal the order, resisting the government's request to immediately produce the emails.

Adams last week put the ruling on hold so Benton could appeal to the district judge, Jarvey, who sided with the government in a terse order Friday. He said the law doesn't give Benton the ability to challenge the execution of a search warrant beforehand. Instead, Benton could later seek to suppress any emails the government wants to use against him in the criminal case by arguing their seizure was unconstitutional.

Prosecutors have said they will review the emails and seize only those that are relevant to their investigation. They pledge to filter out all others, including those protected by attorney-client privilege.