Biogen on Thursday reported second-quarter earnings and revenue that topped estimates and hiked its full-year guidance, as the company’s cost cuts showed progress and sales of its breakthrough Alzheimer’s drug, Leqembi, and other new products beat expectations.