The ruling relates to a lawsuit brought by 12 US states which is seeking to block the deal on competition grounds.