To frustrate a person's efforts or designs; to undercut, to render helpless.
1990, Peter Hopkirk, The Great Game, Folio Society 2010, p. 205:
But whatever the Russians may have felt (and, apparently, still do feel) about Shakespear, his superiors were delighted by the way he had so skilfully spiked the Tsar's guns by liberating his subjects.