The Attorney General shall be and remain a party to any action for dissolution of marriage, legal separation or annulment, and to any proceedings after judgment in such action, if any party to the action, or any child of any party, is receiving or has received aid or care from the state. The Attorney General may also be a party to such action for the purpose of establishing, enforcing or modifying an order for support or alimony if any party to the action is receiving support enforcement services pursuant to Title IV-D of the Social Security Act.