No state funds appropriated for a special needs benefit for emergency housing for recipients of payments under the temporary family assistance program or state-administered general assistance shall be used to pay the costs of emergency shelter in hotels or motels except in cases of natural or man-made disasters or other catastrophic events.