Advocates for criminal justice reform and others are lauding a three-way agreement between Gov. Andrew Cuomo and lawmakers on a bill that will create a commission to investigate misconduct by the state’s district attorneys.

That celebration may be short-lived as the state’s district attorneys are expected to challenge the legislation’s constitutionality in court in the coming days. The president of the District Attorneys Association of the State of New York, Albany County District Attorney David Soares, said Cuomo’s approval of the bill was “unfathomable,” and promised to file a motion for declaratory judgment to determine if the bill is constitutional.