The Maine Supreme Judicial Court overturned a 2021 law that had paved the way for dozens of child sexual assault lawsuits.