Envoy’s courtroom visit sparks diplomatic squabble