China's South China Sea claim invalid, court rules