The proposed merger between the supermarket giants was stalled when judges overseeing two separate cases blocked the deal