China said the HMS Spey’s transit “undermines peace and stability” in the region.