Said Mohammad Reza Modarresi Yazdi, Jurist