The late actor and comedian's family would experience "severe mental pain, anguish, and emotional distress" if the records were released, the judge said.