These are all state laws, not federal.
Indeed, as anyone who has driven into California from Oregon knows, the states are even able to execute foreign policy against other states. Specifically for agricultural inspections in that case.
> The Congress shall have Power [...] To regulate Commerce with foreign Nations
A state prohibiting or requiring the purchase of goods from a particular foreign nation would seem to be encroaching on a Federal power. Especially if this bit gets interpreted as broadly as the next bit does (regulating commerce "among the several States").