A Philippine naval ship recently docked at a new port in the Spratly Islands, showing Manila’s resolve to defend its interests even as its ties with Beijing improve.