Except as provided in sections 4-63 and 4-64, all moneys arising from fines or forfeitures imposed and collected in such courts shall be paid into the treasury ofthe respective cities and shall be used first to cover the housing facilities, equipment, personnel and personnel training, and other costs necessary for the administration of such courts. Any remaining funds shall be used to defray the expenses associated with the enforcement of laws and ordinances relating to and regulating traffic.