A purchase of a one-quarter stake in the German robotics company makes Midea the largest Kuka shareholder as it seeks all of the company.