Eli Lilly has struck a deal to buy genetic-medicine biotechnology company Orna Therapeutics for up to $2.4 billion in cash.