Of course he broke no laws. He did not blow her cover. If he had, though, he would have broken a law.
She'd have to have cover to blow, first...whoever revealed her role was blowing Wilson's "I'm a truthteller" cover, not some super-secret double naught spy's cover.