Green’s Dictionary of Slang

lily law n.

also lilly, lilly law, lily, Miss Lily
[female proper name Lily + lily n.]

[1940s+] (orig. US gay) the police.