The Declaration is law, but the part you are referring to is the preamble of the law.
According to the SCOTUS.