Merck agreed to pay $9.2 billion to purchase Cidara Therapeutics, looking to cash in on the firm's experimental flu treatment.