John Bazemore, Associated Press
Rep. Tommy Pope, R-York, rubs his eyes as the House debates a Senate bill calling for the Confederate flag to be removed from the Capitol grounds Wednesday, July 8, 2015, in Columbia, S.C. The House is under pressure to act after the state Senate passed its own measure, which is supported by Gov. Nikki Haley. But some Republicans proposed changes to the Senate bill that would preserve some kind of symbol in front of the Statehouse to honor their Southern ancestors.

COLUMBIA, S.C. — A group of Republicans mounted opposition Wednesday to immediately removing the Confederate flag from the Capitol grounds as the South Carolina House opened debate, but at each turn, they were beaten back by a slightly larger, bipartisan group of legislators who believe there must be no delay.

As House members deliberated well into the night, the outcome was still uncertain. There were tears of anger and shared memories of Civil War ancestors, and so far, legislators hadn't changed the Senate bill, which is supported by Gov. Nikki Haley and would remove the banner and the pole where it flies. Black Democrats, frustrated at being asked to show grace to Civil War soldiers as the debate went over 12 hours, warned the state was embarrassing itself.

The closest vote in the GOP-controlled body came on an amendment to place a different flag — one that flew over Confederate troops and looks similar to the state flag — beside the monument to Confederate soldiers at the front of the Statehouse. It failed on a 61-56 vote.

Looming over it all was a pair of votes over two days. The final one must get a two-thirds majority by law to remove the flag.

Changing the bill could mean it will take weeks or even months to remove the flag, perhaps blunting momentum that has grown since nine black churchgoers were killed last month during Bible study at a historic African-American church in Charleston.

Republican Rep. Jenny Horne reminded her colleagues she was a descendent of Confederate President Jefferson Davis, and scolded fellow members of her party for stalling the debate with dozens of amendments.

She cried as she remembered the funeral of her slain colleague state Sen. Clementa Pinckney, the pastor of Emanuel African Methodist Episcopal church, who was gunned down with eight others as his wife and daughter locked themselves in an office.

"For the widow of Sen. Pinckney and his two young daughters, that would be adding insult to injury and I will not be a part of it!" she screamed into a microphone.

She said later during a break she didn't intend to speak but got frustrated with fellow Republicans.

Opponents of removing the flag talked about grandparents who passed down family treasures and lamented that the flag had been "hijacked" or "abducted" by racists.

Rep. Mike Pitts, who remembered playing with a Confederate ancestor's cavalry sword while growing up, said for him the flag is a reminder of how dirt-poor Southern farmers fought Yankees not because they hated blacks or supported slavery, but because their land was being invaded.

Those soldiers should be respected just as soldiers who fought in the Middle East or Afghanistan, he said, recalling his own military service. Pitts then turned to a lawmaker he called a dear friend, recalling how his black colleague nearly died in Vietnam.

"I'm willing to move that flag at some point if it causes a twinge in the hearts of my friends," Pitts said. "But I'll ask for something in return."

The debate began less than a day after the U.S. House voted to ban the display of Confederate flags at historic federal cemeteries in the Deep South.

House Minority Leader Todd Rutherford said Democrats are united behind the Senate bill, which would send the flag to the state's Confederate Relic Room — the same resting place for the final rebel flag that flew over the Statehouse dome until it was taken down in 2000.

Democrats don't want any new flag going up because it "will be the new vestige of racism," Rutherford said.

After a break around 8 p.m., Rutherford said Democrats were willing to let the other side make their points, but had grown tired. He said while much had been said about Confederate ancestors, "what we haven't heard is talk about nine people slaughtered in a church."

Democrats then finally began debating, saying they were angry with Republicans asking for grace for people who want to remember their Southern ancestors. Rep. Joe Neal told of his ancestors, four brothers who were bought by slave owners with the last name Neal.

"The whole world is asking, is South Carolina really going to change, or will it hold to an ugly tradition of prejudice and discrimination and hide behind heritage as an excuse for it," Neal said.

Other Democrats suggested the delay would let Ku Klux Klan members planning a rally July 18 a chance to dance around the Confederate flag.

"You don't have to listen to me. But there are a whole lot of people outside this chamber watching," Rep. Gilda Cobb-Hunter said.

Under the Senate proposal, the Confederate flag would have to come down within 24 hours of the governor signing the bill.

If the House changes the bill, the Senate has already agreed to reject it, meaning a conference committee will have to be set up to hash out the differences, and then lawmakers will have to return to vote again.

If the two sides cannot reach an agreement, or the House rejects the Senate bill, the flag debate would probably be dead for this year.

In Washington, the vote by the U.S. House followed a brief debate on a measure funding the National Park Service, which maintains 14 national cemeteries, most of which contain graves of Civil War soldiers.

The proposal by California Democrat Jared Huffman would block the Park Service from allowing private groups to decorate the graves of Southern soldiers with Confederate flags in states that commemorate Confederate Memorial Day. The cemeteries affected are the Andersonville and Vicksburg cemeteries in Georgia and Mississippi.

Also Wednesday, state police said they were investigating an unspecified number of threats against South Carolina lawmakers debating the flag. Police Chief Mark Keel said lawmakers on both sides of the issue had been threatened, but he did not specify which ones.

Associated Press Writer Meg Kinnard contributed to this report.

Follow Jeffrey Collins on Twitter at https://twitter.com/JSCollinsAP .