The ruling comes after a federal judge earlier this year blocked a similar law in California that was enacted after a ...