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