President Obama has endorsed a compromise to pave the way for the repeal of Don't Ask, Don't Tell.

Under the deal, lawmakers could vote soon to repeal the contentious 17-year-old policy, which bars gay men and lesbians from serving openly in the armed services; the House Democratic leaders are considering taking up the measure as soon as this week. But the policy would not change until sometime after Dec. 1, when the Pentagon completes a review of its readiness to deal with the new policy. President Obama would also be required to certify that repeal would not harm military readiness.

If it passed, the measure could clear the way for gay men and lesbians to serve openly in the military as early next year, ending a policy that Mr. Obama, Defense Secretary Robert M. Gates and Adm. Mike Mullen, the chairman of the joint chiefs of staff, all say they oppose.