Democrats in the U.S. Senate, joined by some Republicans, blocked an effort on Thursday to deny federal funds for the women's health care group Planned Parenthood in a move that could help avoid a government shutdown on Oct. 1.

Most Senate Republicans had supported the plan to attach the Planned Parenthood defunding to a bill that keeps the government operating with the start of the new fiscal year on Oct. 1.

But 42 Democrats, two independents and eight Republicans banded together to stop the anti-abortion effort on a procedural vote, 11 more than the 41 needed to block the legislation.

At least one of the Republicans, Tom Cotton of Arkansas, said he cast his vote against the bill to protest inadequate military funding.

Just before the vote, the White House warned that President Barack Obama would veto legislation to continue funding the government if it strips away federal money for Planned Parenthood, setting up the showdown with anti-abortion advocates.

For weeks, many Republicans have vowed to punish Planned Parenthood following the release of secretly taped videos in which its officials discussed harvesting tissue from aborted fetuses.

Planned Parenthood, which receives over $500 million in government funds annually, denies any wrongdoing.

With the Oct. 1 deadline for passing a funding bill looming and Republican leaders in the Senate and House of Representatives trying to avoid a government shutdown, the Senate will next advance a bill funding the government until Dec. 11, but without the abortion rider.

Its fate in the House is unclear. House Republican leaders were huddling in the Capitol following the Senate vote.

"I think we all know we're going to have a clean" continuing resolution, said Sen. Lisa Murkowski, R-Alaska, using the common congressional term. "The House is going to figure out what the House is going to do but we can't shut down the government."

Some House Republicans have said they cannot vote for a bill that provides money to Planned Parenthood. But on Wednesday some first-term House Republicans sent an open letter urging party colleagues not to take any steps that would lead to a shutdown.

House Speaker John Boehner, R-Ohio, has only shaky control over his fractious caucus, and tea party Republicans are adamant about using the must-pass measure to carry provisions to defund Planned Parenthood, even at the risk of a partial government shutdown.

Al Jazeera and news services