Obama warns China over South China Sea ruling