The D.C. Council extended the District's antidiscrimination law yesterday to cover the city's major private clubs, a move aimed at all-male clubs, such as the Cosmos and Metropolitan, that would affect all-female clubs, too.

The measure, which passed unanimously, brings the affected clubs under the city's wide-ranging human rights act, which prohibits discrimination on the basis of sex, race and 14 other categories, including age, marital status, personal appearance, sexual orientation, source of income, religion and place of residence.

The bill is patterned after a New York City ordinance, upheld last winter by New York's highest court, that is being challenged in the Supreme Court.

Yesterday, Ann F. Lewis, head of the Private Clubs Discrimination Project of the Americans for Democratic Action, one of the groups that pushed for the D.C. law, hailed the measure for "precluding any vestiges of discrimination."

Lewis and other proponents of the bill had argued that the all-male clubs are important centers of power and business "networking" and that women are placed at a major disadvantage if they are excluded from membership.

Gerald F. Hurley, executive vice president of the National Club Association, denounced the bill as "an assault on people's rights of free association on the pretext that something is happening in these clubs that is so important."

He urged the District government to delay enforcement of the measure, which Mayor Marion Barry has indicated he will sign, until the Supreme Court rules on the New York City ordinance. The District's bill, if signed by the mayor, would be subject to a 30-day congressional review period.

John B. Farmakides, president of the Cosmos Club board, said last night that "we are a private club and we have no comment" on the council's move. The general manager of the Metropolitan Club, Gunther Skole, likewise declined to comment on the issue.

Under the council measure, the D.C. human rights law would apply to any club with at least 350 members that regularly serves meals and receives payment for use of its facilities "directly or indirectly from or on behalf of nonmembers for the furtherance of trade or business."

Council member Jim Nathanson (D-Ward 3), the sponsor of the measure, said he thought that the bill would apply only to the Cosmos and Metropolitan clubs, two prestigious all-male clubs whose members include judges, government officials, prominent journalists and businessmen.

But Lewis -- along with opponents of the bill -- said it would apply to all-female clubs that serve meals and rent out facilities to which nonmembers may be invited.

"We think discrimination is offensive no matter on whose behalf it is practiced," Lewis declared.

The most prominent of the clubs that admit only women to full membership are the Sulgrave, Washington and Women's National Democratic clubs, all located in mansions near Dupont Circle.

In a letter to the D.C. Council, Yolande Collins, president of the Sulgrave Club, said the measure would wreak "havoc on our club . . . {and} infringe upon the constitutionally protected freedom of association of the indivual citizens" who are club members.

The bill also was opposed by the Prince Hall Masons, a black fraternal group, which said it feared that the bill would compel changes in its membership policy.

Under the human rights law, religious and political organizations are allowed to limit membership to those of the "same religion or political persuasion," but they may not discriminate on any other grounds, such as race, sex or age.

In other action yesterday, the council passed emergency legislation to require public reporting and audits of $25,000 annual ceremonial funds for the council and mayor that were included in the District's fiscal 1988 budget.

Barry agreed to the disclosure and auditing requirements several weeks ago, though in previous years he had opposed disclosure of records for ceremonial accounts. Last week, the Senate Appropriations Committee passed an amendment to the fiscal 1988 D.C. budget bill that would require such disclosure.