It gets passed by legislation in the same way that marijuana laws get passed on the state level. Even though marijuana is illegal on a federal level it is legal on a state level. The same can be true for these laws