A law that violates constitutional law is not a law.
The constitutionality of the law was upheld by the Supreme Court in the Prize Cases.