The only rights that can be recognized under the law are those recognized by law. There iss no law recognizing the right to pursue happinness, much less the right to be happy.
Rights exist above the law as clearly spelled out in the declaration of independence. There is no law intended to list all of your rights and no government at any level in the US which stated as it’s purpose to list your rights.