The judge ruled the merger would limit competition and hurt consumers.