The court said the law was unconstitutional