Robert Cordy, a justice of the Supreme Judicial Court and a veteran of Gov. William Weld’s administration, said Thursday that placing the Probation Department under the control of the Executive Branch could leave the agency vulnerable to “the political mood.”