I think it shouldn't be illegal unless you give the copy to someone else.
The whole thing is exceptionally stupid, and really, they should just download the archive copy of Anna’s archive (which is what the Chinese are doing, and what US labs were doing)
Anna’s Archive still doesn't have everything — I suspect all these books described are not in this great dataset.