Workers at US food group Pinnacle Foods have agreed a new four-year contract that includes a pay increase.