A tribunal at The Hague dealt a major blow to China's maritime claims and declared some of its tactics illegal.