Biogen said on Wednesday it would acquire drug discovery company RayThera for $1 billion, including milestone payments.