A federal judge invalidated three patents that CareDx licenses from Stanford University related to organ-transplant rejection tests, a blow to CareDx’s …