The court said the law violates Kentucky's constitution.