US egg firm Cal-Maine Foods has struck a deal to buy the commercial egg business of poultry firm Pilgrim's Pride.