There is evidence that the code was present on websites, but, the code was never functional, that is, it never mined bitcoins. Therefore it never breached any laws.
As such, one has to wonder either whether the cyber fraud unit of the state department has basic understanding of programming or whether the state department is willfully taking this action to send some sort of message.