For the record, nationalizing the National Guard and using it to round up illegal immigrants is probably a violation of posse comitatis.
The National Guard can be used for law enforcement purposes while under the direction of governors, but once mobilized, I think they’re covered by PC