Decision to allow neurologist voluntary erasure was illegal “fiasco,” says judge