An Albany Supreme Court justice late Tuesday ruled to sideline a prosecutorial misconduct watchdog created by the New York Legislature last year, striking down the statute as unconstitutional.

The decision is a win for the District Attorneys Association of the State of New York, which has opposed the creation of such a commission, and Albany County District Attorney David Soares, who represented the interest of all New York state prosecutors.