You worked illegally since on H-1B status you are only permitted to work for your sponsoring employer; this is well documented to be an unacceptable activity. Illegal work is a significant event in immigration processing. Given the consequences, you should consult an attorney.

