Federal Law takes precedence over State, but the anti-commandeering doctrine prevents the federal government from directly compelling states to implement or enforce federal law. So local law enforcement is under no obligation to pass information to ICE or assist ICE. It has been ruled on time and time again, from 1842 when Justice Joseph Story affirmed it [1] to Justice Samuel Alito in 2018 [2].
[1] “The clause relating to fugitive slaves is found in the national Constitution, and not in that of any State. It might well be deemed an unconstitutional exercise of the power of interpretation to insist that the States are bound to provide means to carry into effect the duties of the National Government nowhere delegated or entrusted to them by the Constitution.” Prigg v. Pennsylvania https://supreme.justia.com/cases/federal/us/41/539/
[2] “Congress may not simply ‘commandeer the legislative process of the States by directly compelling them to enact and enforce a federal regulatory program.” Murphy v. National Collegiate Athletic Association https://www.oyez.org/cases/2017/16-476
My comment shouldn't be read as supporting the activities or really disagreeing with your statement. Was merely indicating that the legal authorities are not as clear cut as the article suggests.
To use your examples:
1) enforcement of borders is a power delegated to the federal government, and it's arguable these activities are within scope.
2) This is not a regulatory program but an enforcement activity (though you could argue that the state doesn't need to support these activities)
:shrug: This is why we have lawyers