Company that bred beagles for medical research agrees to pay record $35m fine