Judge rules that defence shares document with prosecution