Investors were buoyed by health care companies announcing developments that could slow the pandemic.