The McDonald’s Corporation said on Monday that it would begin working with its pork suppliers to phase out the use of so-called gestational crates, the tiny stalls in which sows are housed while pregnant.