Lawrence J. Tabas, the general counsel of the Republican Party of Pennsylvania, said on Saturday that the withdrawal served as “recognition” that the Stein-led effort was “completely without merit,” and that the decision to drop the case “assures that President-elect Trump will be declared the winner by the Electoral College,” which meets on Dec. 19.

Earlier, Ms. Stein had criticized the $1 million bond needed to proceed with a recount. “This is yet another sign that Pennsylvania’s antiquated election law is stacked against voters,” she said. “We will pursue every available remedy to ensure Pennsylvanians can trust what happened in this election.”

Hillary Clinton, the Democratic nominee, trails Mr. Trump by 49,543 votes in the state, according to data from the Pennsylvania Department of State. As voting results were updated this week, Mr. Trump’s lead in Pennsylvania had shrunk by about 20,000 votes. Mrs. Clinton would have needed to be declared the winner in all three recount states to overturn the Electoral College result.

While the statewide effort was withdrawn, a related campaign to recount votes in targeted precincts in places like Philadelphia is continuing, but it would fall far short of the statewide recount Ms. Stein had sought.

Ms. Stein has gained more traction pushing for recounts in the other two battleground states, where Mr. Trump leads by narrow margins.