Sadegh Amoli Larijani, Jurist