When has enforceability ever been a concern of the government? This is the same government that had anti-sodomy laws on the books until the Supreme Court ruled it unconstitutional in 2003.

Making it illegal even without having a realistic means of enforcing it still chills behavior, and so just because it isn't practically enforceable in the general case doesn't mean it isn't without consequences.