Brazilian beef firm JBS has entered into an agreement that will see its US business assume operational control of the Canadian operations of XL Foods, the company at the centre of a large-scale food scare.