The contracts are separate - the fact that the second company is permitted to hire somebody who is send to them by the first does not, of itself, mean that the noncompete in your employment contract is void.
You may wish to ask the first company if they will release you from that provision if the second company offers you a job.

