Gov. Andrew M. Cuomo signed a bill to create a statewide Commission on Prosecutorial Conduct.