Tesla Inc. agreed to acquire battery-technology company Maxwell Technologies Inc. for about $218 million in stock, as Elon Musk’s electric car maker adds expertise in energy storage and power delivery. PrevNext