The validity of any rule of the commission may be determined upon petition for a declaratory judgment thereon addressed to the chancery court of Davidson County, when it appears that the rule, or its threatened application, interferes with or impairs, or threatens to interfere with or impair, the legal rights or privileges of the petitioner. The commission shall be made a party to all such proceedings. Such declaratory judgment may be rendered whether or not the petitioner has first requested the commission to pass upon the validity of the rule in question. In passing on such rules, the court shall declare the rule invalid only if it finds that it violates constitutional provisions or exceeds the statutory authority of the commission or was adopted without compliance with the rulemaking procedures provided for in this chapter.