LMAO. First of all, it wasn't a court. It was a tribunal. This was not a lawsuit either, but a voluntary arbitration, which China did not participate in whatsoever.
And really though. An arbitration case backed by the US, filed by American lawyers on behalf of the a US ally, that clearly violates the principles of UNCLOS, which has no business making judgments on sovereignty issues, AND requires bilateral consent as a prerequisite for arbitration, headed by a Japanese national of all people, who appointed all arbitrators himself.
Was it ever in doubt what the ruling was going to be?