The State Department paid hundreds of thousands of dollars in taxpayers grants to an Israeli group that used the money to build a campaign to oust Prime Minister Benjamin Netanyahu in last year’s Israeli parliamentary elections, a congressional investigation concluded Tuesday.

Some $350,000 was sent to OneVoice, ostensibly to support the group’s efforts to back Israeli-Palestinian peace settlement negotiations. But OneVoice used the money to build a voter database, train activists and hire a political consulting firm with ties to President Obama’s campaign — all of which set the stage for an anti-Netanyahu campaign, the Senate Permanent Subcommittee on Investigations said in a bipartisan staff report.

In one stunning finding, the subcommittee said OneVoice even told the State Department’s top diplomat in Jerusalem of its plans in an email, but the official, Consul General Michael Ratney, claims never to have seen them.

PHOTOS: See Obama's biggest White House fails

He said he regularly deleted emails with large attachments — a striking violation of open-records laws for a department already reeling from former Secretary Hillary Clinton’s handling of official government records.

Mr. Netanyahu survived the election, and the U.S. spending was not deemed illegal because the State Department never put any conditions on the money. Investigators also said OneVoice didn’t turn explicitly political until days after the grant period ended.

“The State Department ignored warnings signs and funded a politically active group in a politically sensitive environment with inadequate safeguards,” said Sen. Rob Portman, chairman of the investigative subcommittee. “It is completely unacceptable that U.S. taxpayer dollars were used to build a political campaign infrastructure that was deployed — immediately after the grant ended — against the leader of our closest ally in the Middle East. American resources should be used to help our allies in the region, not undermine them.”

PHOTOS: Famous felons

Sen. Claire McCaskill, the ranking Democrat on the subcommittee, said the Obama administration followed the law.

But she said their investigation exposed “deficiencies” in the State Department’s policies.

OneVoice had been politically active in Israel’s 2013 elections, which should have been a red flag to U.S. officials to put strict controls on how American taxpayers’ money was spent, the investigation said.

While it wouldn’t have necessarily disqualified the group, the State Department should have written a specific prohibition against using American money to influence a foreign election, the subcommittee said.

It’s part of a pattern of bad behavior at the State Department. The Government Accountability Office reviewed more than five dozen department grants and found officials cut corners and missed red flags in 80 percent of them.

The Israeli Embassy didn’t respond to a request for comment on the findings.

State Department spokesman John Kirby said they had not had time to go through the report and he couldn’t comment on it. He also didn’t comment on Mr. Ratney’s practice of deleting official records.

The Senate investigation found that the State Department funded two sister groups — OneVoice Israel and OneVoice Palestine — to hire a U.S. political consulting firm, recruit volunteers, build a social media network and run advertising.

But it was also building its anti-Netanyahu political strategy, at a time when the Israeli leader was quite controversial in U.S. politics, celebrated by Republicans but feuding with the Obama White House over differences in policy.

OneVoice told at least two State Department officials of its political plans, even as it was collecting taxpayer money. But the department “took no action in response,” the subcommittee concluded.

Mr. Ratney, one of the two officials, said he remembered getting an email from OneVoice, but didn’t recall seeing the attached file detailing the group’s political strategy.

The State Department was unable to recover the email, but investigators got it from OneVoice.

Mr. Ratney later told investigators he regularly deleted emails with attachments “in order to maintain my inbox under the storage limit.” He told investigators he “did not know [he] was required to archive routine emails.”