Sorry to hear your misfortune. I have no experience in jaywalking or supplying ID to the cops but
sounds like you should have said you were an illegal and everything would have been fine. No biggie.
Pretty ridiculous if you ask me, a BS ticket. I'll be curious to know what the fine $$ is.