Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

FORT WORTH, Texas — Republicans in one of the most populous counties in Texas voted Thursday to keep a Muslim doctor as their party vice chairman following infighting over some members' claims about his beliefs.

The executive committee of the Tarrant County Republican Party voted 139-49 to reject the effort to purge Shahid Shafi, a surgeon and City Council member in suburban Fort Worth.

"This vote reaffirms the commitment by a majority of Tarrant County Republicans to our core values and moral compass, a demonstration of our allegiance to the Texas Republican Party Platform and the Constitutions of the United States and Texas, which strictly prohibit religious and racial discrimination of any kind," Tarrant County Republican Party Chair Darl Easton said in a written statement.

"While tonight's vote brings an end to this unfortunate episode, it also demonstrates we are a party that respects the right of those who disagree on an issue to have a seat at the table and their voices heard," according to the statement. "Religious liberty won tonight and while that makes a great day for the Republican Party of Tarrant County, that victory also serves notice that we have much work to do unifying our party."

The Fort Worth Star-Telegram reported at least one precinct chair, Arlington Republican Dale Attebery, was said have to tossed his ID at the lecturn after the vote. Easton said he accepted that as Attebery's resignation.

Shafi told reporters that his faith in Tarrant County Republicans had been reaffirmed.

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

"As we struggled through the last few months, it would have been easy for me to quit. But I stayed on to fight," he said. "We were fighting for religious freedom ... and today we have come out victorious."

The Thursday vote result took a stand "against bigotry of all kinds," he said. "Our union is a little more perfect today."

A party precinct chairwoman, Dorrie O'Brien, had led the call to oust Shafi on claims that he may be more loyal to Islamic law or connected to a terrorist group. Shafi denied both claims and other Republicans have called them bigoted.

"Religious freedom is at the core of who we are as a nation and state," Gov. Greg Abbott said in a statement Wednesday, "and attacks on Dr. Shafi because of his faith are contrary to this guiding principle."

Other top Republicans, such as U.S. Sen. Ted Cruz and Land Commissioner George P. Bush, also had condemned the effort to oust him.

Cruz tweeted at one point that discriminating against Shafi because of his religion was "wrong." The First Amendment protects religious liberty for every faith, Cruz said on Twitter.

Former Tarrant County GOP leader William Busby earlier told the Fort Worth Star-Telegram that some large corporate donors "don't want to be associated with a party that's going in the direction of excluding people based upon their religious beliefs."

Shafi is one of two party vice chairmen and has worked for the party for about 10 years, including as a delegate to the state party convention. He's serving a two-year term as vice chairman and his election in July drew one lone dissenting vote among the approximately 250 precinct chairmen who voted that day. That lone dissenter was O'Brien.

A handful of others have joined her in opposing Shafi. O'Brien did not respond to a request for comment by The Associated Press.

Her call to reconsider Shafi's appointment gained traction with some party members after Tarrant County turned blue in the U.S. Senate race in November.

The State Republican Executive Committee in Austin responded to the move by passing a resolution recently that stressed Republican members across Texas have the "freedom to practice all faiths."

Follow NBC Asian America on Facebook, Twitter, Instagram and Tumblr.