The private equity firm Veritas Capital agreed to buy Bodycote Plc for approximately $2.2 billion, after raising its bid to outcompete CVC Advisers Ltd.