SInce this matter is with court,no management is going to take you in,even if they have soft corner for you,as this will creat a complet disturbance,since you had already approcahed court either wait for the decision(which may take a very long time) or search for new job,since you had not mention clearly on what ground they had terminated your services it is difficult to tell how strong your case is.But this is for sure even if lower court passes the order in your favour,company will surely go for appeal in higher court.
regarding your question on legal hassel,if management provides you job,than this will weak their case.Hence they will never do this.
Regards
AK