If the gift was promised and the target is illegal as Valley Rally tries to resolve, it won't resolve and none of its effects will happen. The opponent won't create a Food token and creatures you control won't get +2/+0.