The second company is just a private company that happens to hire former prisoners. Having 2 factories owned by the state would mean they can offer one price using both types of labor.
Pay the prisoners minimum wage but withhold 75% of it until they are released. Allow the 25% to be added to commissary and legally abolish chargebacks to prisoners.