The Times’s Adam Liptak on Supreme Court decisions banning some juvenile life imprisonment terms and extending custody for convicted sex offenders.