How is this illegal? Polymarket isn't a US-regulated market.
It's rather obviously illegal to leak classified intel by taking public actions based off of it... that's practically the meaning of the word "classified".
If you're the Trump hand-picked Secretary of the War Department then it is not illegal and will never be punished.
Always remember which tier of justice you are on prior to committing a crime!