China threatens consequences over US warship’s actions