Ruling gives hundreds of juvenile murderers shot at new sentences