Biogen Inc. joined a consortium to build a collection of biological and medical data, where the company’s employees who had tested for and recovered from the coronavirus would be able to participate.