Lawyers for New Jersey resident Hadi Matar said they planned to appeal the sentence, which was the maximum possible.