Viking Therapeutics Inc.’s stock soared 18% Thursday, after the biotech, which is developing a weight-loss drug in pill form that has raised high hopes among analysts and investors, posted earnings that showed enough cash on its balance sheet to fund key clinical trials.