Top Pentagon leaders will notify Congress as early as Friday that the Defense Department is ready to end the ban on gays serving openly in the military, officials said, a landmark moment after almost two decades of controversy.

The action means the ban will formally disappear in late September. The next step for the military is to resolve lingering questions, such as what benefits same-sex couples will receive.

While...