WASHINGTON — House Republicans raised the white flag Thursday on extending domestic violence protections to gays, lesbians and transsexuals after months of resisting an expansion of the Violence Against Women Act.

GOP leaders, who had tried to limit the bill before last November’s election, gave the go-ahead for the House to accept a more ambitious Senate version written mainly by Democrats.

Today’s House vote was 286 to 138, and included 87 Republicans.

Democrats, with a minority of Republicans, were key to the 286-138 House vote that sent to President Barack Obama a renewal of the 1994 law that has set the standard for how to protect women, and some men, from domestic abuse and prosecute abusers.

It was the third time this year that House Speaker John Boehner has allowed Democrats and moderates in his own party to prevail over the GOP’s much larger conservative wing. As with a Jan. 1 vote to avoid the fiscal cliff and legislation to extend Superstorm Sandy aid, a majority of House Republicans voted against the final anti-violence bill.

Obama, in a statement, said that “renewing this bill is an important step towards making sure no one in America is forced to live in fear” and said he would sign the bill “as soon as it hits my desk.”

The law has been renewed twice before without controversy, but it lapsed in 2011 as it was caught up in the partisan battles that now divide Congress. Last year, the House refused to go along with a Senate-passed bill that would have made clear that lesbians, gays, immigrants and Native American women should have equal access to Violence Against Women Act programs.

It appeared the scenario would be repeated this year when the House introduced a bill that didn’t mention the lesbian, gay, bisexual and transgender community and watered down a Senate provision allowing tribal courts to prosecute non-Indians who attack their Indian partners on tribal lands.

House Majority Leader Eric Cantor (R-Va.), who has spent months working on the issue, defended the Republican plan: “Our goal in strengthening the Violence Against Women Act is simple. We want to help all women who are faced with violent, abusive and dangerous situations. … We want them to know that those who commit these horrendous crimes will be punished.”

But the House proposal encountered quick and strong opposition from women’s groups, the White House, Democrats and some Republicans, and on Tuesday, the GOP leadership agreed to give the House a vote on the Senate bill. It passed immediately after the House rejected Cantor’s bill, 257-166, with 60 Republicans voting against it.

Vice President Joe Biden, who as a senator was instrumental in moving the 1994 act through Congress, praised Cantor for not standing in the Senate bill’s way. “He kept his word,” Biden said.

The GOP decision to step aside and let the Senate bill pass came after the party’s poor showing among women in last fall’s election and Democratic success in framing the debate over the Violence Against Women Act as Republican policy hostile to women. Obama won 55 percent of the women’s vote last November. Republican presidential candidates haven’t won the women’s vote since 1984, when Ronald Reagan held a 12-point lead over Walter Mondale among women.

The anti-violence bill should never have become partisan, said Sen. Patty Murray (D-Wash.), a sponsor of the Senate bill. “That is why I applaud moderate Republican voices in the House who stood up to their leadership to demand a vote on the Senate bill.”

The Senate passed its bill on a 78-22 vote with every Democrat, every woman senator and 23 of 45 Republicans supporting it.

The Violence Against Women Act is credited with helping reduce domestic violence incidents by two-thirds over the past two decades. The Senate bill would authorize some $659 million a year over five years to fund current programs that provide grants for transitional housing, legal assistance, law enforcement training and hotlines.

The Senate bill adds stalking to the list of crimes that make immigrants eligible for protection and authorizes programs dealing with sexual assault on college campuses and with efforts to reduce the backlog in rape kit analyses. It reauthorizes the Trafficking Victims Protection Act.

Associated Press contributed to this report.