Deal reached for stopping spike in milk prices