The medicines, which help unleash the immune system on cancer cells, were tested in different categories of patients with advanced lung cancer.