Drugs that boost the body’s immune system to fight disease are showing promise in treating a variety of cancers in earlier stages, a development primed to expand their use and transform care for stubborn diseases like gastric and colon cancer.