It's hard to believe you're actually serious.  Start with "8 U.S. Code § 1324 - Bringing in and harboring certain aliens" and educate yourself from there.

https://www.law.cornell.edu/uscode/text/8/1324

The governors and mayors in question are almost certainly breaking federal laws by providing safe harbor to these illegals, and they DO risk imprisonment for doing so.  Nothing "remote" about that, but in reality none of them will likely ever do time for their acts (though they should).

And treasonous?  Yes, but I'll give you this:  I KNOW they're breaking the law with their "aiding and abetting", but I only FEEL they are committing treasonous acts in doing so. They work in direct conflict with the interests of American Citizens who of course foot the bill for all the "safe harbor" policies.