Rights groups said the ruling would give closure to families of the thousands of people killed in the crackdown promoted by President Rodrigo Duterte.