The study, published in the journal Nature, showed the jabs provided an immunity boost that helped extend survival for certain skin and lung cancers.