House lawmakers approved a bill Wednesday to end the “don’t ask, don’t tell” law, giving new momentum to an effort backed by President Obama, Pentagon leaders and gay rights activists to end the ban on gays serving openly in the military this year.

The House voted 250 to 175 to repeal the 17-year Defense Department law that bars gays and lesbians from serving openly in uniform. The 75-vote margin was wider than a similar vote in May. Fifteen Republicans voted for the bill while 15 Democrats opposed it.

President Obama heralded the vote, saying in a statement that ending current military policy “is not only the right thing to do, it will also give our military the clarity and certainty it deserves. We must ensure that Americans who are willing to risk their lives for their country are treated fairly and equally by their country.”