The NCIS actress Katrina Law has been granted a restraining order after she accused her estranged husband of impersonating her with the use of AI.