Supreme Judicial Court rules in favor of five-person board of police commissioners