Leaving aside that you use Wikipedia as a source, if you read what you cited closely you'll see those state laws had to do with state cooperation in enforcement of federal law.
That's distinguished from the situation in the article in the original post, which says the Kansas law would prosecute federal officials from enforcing such laws in Kansas.
Try again.