From the moment they secured a warrant, dozens of FBI agents worked night and day to analyze a trove of messages that they thought might help advance their probe of Hillary Clinton’s use of a private e-mail server, according to a U.S. official.

The pressure was intense. FBI Director James Comey had told legislators in late October — less than two weeks before the election — that the bureau’s work had resumed, igniting a firestorm of criticism that his revelation had affected the election. The agents’ work, at first, seemed endless. They had to use special software to sift through some 650,000 e-mails.

But on Sunday, just two days before the election, Comey announced that the team had news to share. After reviewing “all of the communications that were to or from Hillary Clinton while she was Secretary of State,” he wrote, investigators had “not changed our conclusions.”

The messages, U.S. officials familiar with the case said, were either personal or duplicative of those found earlier in the investigation.

The recommendation marked the culmination of a nightmarish 10 days for the bureau. But coming two days before the election, it also generated renewed skepticism from both political parties about the FBI’s handling of the high-profile case.

Republicans said the announcement was vague and that they had unanswered questions about how investigators concluded that Clinton should face no charges in the first place. Democrats, meanwhile, said they remained concerned that Comey had told legislators so close to Election Day that the e-mail investigation was resuming, though they were heartened to see the matter ostensibly put to rest.

“In the days that come,” said U.S. Rep. John Conyers Jr., D-Mich., “we will have many questions about the handling of this investigation.”

From the moment Comey announced in July that he was recommending Clinton not be charged, the bureau has been under pressure, with Comey at the center of a political firestorm.

And when FBI agents were looking into allegations about disgraced former congressman Anthony Weiner, D-N.Y., and found on Weiner’s computer e-mails potentially relevant to the Clinton probe, Comey had a dilemma.

Should he update Congress, with the election so close, that the Clinton e-mail investigation had resumed? Or, with so little information, should he wait, potentially inviting criticism that he had buried information to help Clinton get elected?

“I don’t think anyone was unaware of the calendar,” one senior law enforcement official familiar with the probe said.

As the agents worked, the bureau faced a seemingly endless torrent of criticism. News leaked that agents in the FBI’s New York field office had been advocating for a separate investigation of the Clinton Foundation, even though public integrity prosecutors had told them that they did not have a case. That fueled the perception that at least some in the bureau, a organization of predominantly white men, might have partisan motivations, and Democrats called for the Justice Department inspector general to look into the matter.

Republicans also questioned whether — if the Clinton e-mail investigators had used more aggressive tactics — they might have uncovered information that could have been used by those wanting to look into the Clinton Foundation.

Given the reasoning Comey laid out for not recommending charges in July, it was always unlikely that the new e-mail review would change anyone’s mind.

Now, though, the bureau will face more questions. In a statement, Sen. Charles Grassley, R-Iowa, the chair of the Judiciary Committee, said that the “vague” announcement by the FBI failed to provide context and that he was unsure if the review was over.

“The growing number of unanswered questions demand explanations: Is the FBI continuing to review the newly revealed e-mails?” Grassley said. “Did the FBI limit its review to e-mail from when Clinton was secretary of state, leaving out e-mails that could shed light on possible obstruction of Congress?”

This time, though, Comey’s timing did not seem as much of an issue. Republicans and Democrats had called on him to complete the new review swiftly and announce his findings publicly. Ron Hosko, a former assistant director at the FBI, said that he believed Comey gave Congress information when it was available to him and that Sunday’s revelation served as evidence of that.

“They were able to give clarity on a Sunday evening, two days before the election, and he felt like, ‘If we have the question answered now, we have to answer the question now,’ ” Hosko said.