Judge says consultation over prosecuting ex-presidents is unconstitutional