The legislation could mean jail time and a fine for those supporting sanctuary policies designed to protect migrants.