The Supreme Judicial Court upheld sentences against Philip Chism, who raped and murdered a Danvers High School math teacher in 2013.