No, we don't know if it is legal. Its legality is in dispute.
That is why there is a lawsuit. It is, as others have said, a matter for the courts.
Similarly, copyright has lots of rules about when it is permitted to copy something without paying royalties.
Determining if this is the case is...