A federal judge has upheld a Takeda Pharmaceutical and Abbott Laboratories patent for the drugmakers' jointly marketed heartburn drug Prevacid.