A federal judge in California has halted the merger of TV giant Nexstar and its rival, Tegna, until an antitrust lawsuit is settled.