Emerson Electric Co. (IW 500/52) agreed to buy Pentair Plc's valves and controls business for $3.15 billion in cash, broadening its focus on industrial automation under a year-old plan to overhaul operations.