A judge says the federal law has no constitutional basis and threatens First and Fourth Amendment rights.