Answer:
Praise be to Allah, the Lord of the World; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
You have to give back all the government money you had taken it, for the Hadith of the Prophet (Sallallahu Alaihi wa Sallam) that stated:
"A hand (i.e. A person) is held responsible for what he had taken till he gives it back" . [Imam
al-Tirmizi and graded it as Hasan Sahih].
You must feel sorrow for the past occurrences; ask forgiveness of Allah, strongly determine not to commit such a sin again; without the above matters your repentance is no longer valid. If you fear any harm in returning the money, then you may use any suitable safe way to give it back such as sending by draft without mentioning your name, etc.
If that is impossible, then you can spend the money for public benefit since all the government money is actually for public benefit. So, spending it in that field is similar to returning it to government.
Furthermore, spending such money for public benefit becomes compulsory if there is misuse of the public money in the governmental organizations. If you return the money to such organizations someone may use it unlawfully.
Allah knows best.