New York Attorney General Eric Schneiderman on Friday asked a court to throw out a legal challenge to the state's newly-enacted gay marriage law, the Associated Press reported.

New Yorkers for Constitutional Freedoms, one of the largest groups which lobbied against the law's passage in June, filed the lawsuit on July 25.

The lawsuit claims in part that the closed-door negotiations between Senate Republicans and Governor Andrew Cuomo violated the state's open meetings law and Cuomo's waiver of the three-day waiting period between a bill's formal introduction and a vote runs afoul of the Senate's own rules.

Lawmakers approved the law in June, making New York the sixth state, along with the District of Columbia, to legalize gay marriage. The law went into effect on Sunday, July 24.

In his motion to dismiss, Schneiderman argued that plaintiffs had not been harmed by the law's enactment and don't have standing to challenge the Senate's actions in court. He's asked for a hearing on October 17 at the Livingston County Courthouse.