"National governments are allowed to enforce laws outside their own borders, such as intellectual property and copyright."
I believe those are done through treaties.
I'm not sure how the federal government weighs in on this since they have the authority on interstate commerce, which this falls under.