A US warship has sailed near a disputed island in the South China Sea to challenge efforts to limit freedom of access, the Pentagon said.