ALBANY, N.Y. (AP) — A New York judge has ruled that a 2016 law allowing and regulating daily fantasy sports violates the gambling ban in the state constitution.

The Journal News reports that Acting Supreme Court Justice Gerald Connolly made the ruling Friday. Connolly also ruled that state lawmakers could take daily fantasy sports out of the state penal law, which penalizes illegal gambling.

The ruling was in response to a lawsuit filed by anti-gambling organizations. Its immediate impact wasn't clear.

Attorney David Boies, who represents DraftKings, claimed the ruling allows DraftKings to "continue to offer their services to players." He said they're studying the "decision invalidating the regulatory structure and are committed to working with the legislature."

A spokesman for FanDuel declined to comment. The state Gaming Commissions says it's reviewing the decision.

More From WIBX 950