I wish I knew more about that but under my understanding, if you have a contract, that shows that you were not willing to work illegally. Its his responsability to apply for his workers work permit.
I would ask a lawyer in person, show your evidences, seek his advice and act according to that.