I need some advice/guidance from anyone, I am in a difficult situation at present and will appreciate any sort of help.
I am on a work permit. In February I accepted the employment from another company (lets say company A) who were willing to sponsor my WP (work permit). Now I was aware that a company needs to secure a WP first and then only I can work for them legally. I gave all the information which is required to put up the WP application and was certain that they must have applied for my WP and all. When I joined them, to my surprise, they still hadn't applied for my WP. According to them it was ok to work for them and there were few examples like that in the company where they got the WP after they started working for them. So I thought that like them it will be fine for me as well and thats where the problem started. These guys took 4 months to sponsor my WP which was insane. Meanwhile I got another offer from a company (lets say company B) but they said that they will take over my existing WP (which wasn't there). Now I was in a situation, so I started forcing my current employer (company A) to get the WP, finally I got the WP and my new company (company B) took over from there and sponsored a new WP for me which took only 1 week. Now my leave to remain from last employment was about to expire on the 28th July, so I send the FLR form with the WP to the home office. The home office found that I was working for company A without a valid WP and they rejected my Leave to Remain.
I did put up an appeal against it with my new employer (company B) but today I came to know that it was rejected as well

This is the situation and I need some information
1) Can I take my employer (company A) to the court? Although I was at fault as well since I started working for them but I guess they were at fault as well and I am not sure if Home Office will do anything against it ? But they have messed up with my career, my legal status and everything and I surely want to do something against them
2) Is there anything I can do against the rejection of the appeal ? or I have to leave the country ?
3) My new employer (company B) is willing to sponsor a WP again for me once I am back in India. Will this refusal of leave to remain create any problem for me if I want to come back to UK ?
Any help in this will greatly appreciated. I have a 7 weeks old daughter and I have to take her back home, all this will be quite expensive for me.
Awaiting a response at the earliest.
Regards