Servier said it would buy Day One Biopharmaceuticals, the maker of a drug for childhood brain tumors, in a deal worth roughly $2.5 billion.