The ruling removes a significant legal headache for Ocado, which is in the midst of building automated online grocery fulfillment centers for Kroger.