Judge approves restrictions to court records in case of ex-assistant prosecutor charged with rape