The ruling marks another victory for anti-trust officials, who sued the companies in July last year to stop the deal.