If the court orders distribution of property in the decedent’s estate to the state, and the order includes words that otherwise create a trust in favor of unknown or unidentified persons as a class, the distribution shall vest in the state both legal and equitable title to the property.