Tech Mahindra Ltd, India’s fifth-biggest software services exporter, will buy U.S.-based healthcare IT consulting firm..