All that the rights view prohibits is science that violates individual rights. If that means that there are some things we cannot learn, then so be it. There are also some things we cannot learn by using humans, if we respect their rights. The rights view merely requires moral consistency in this regard.
(Tom Regan, The Case for Animal Rights, updated with a new preface [Berkeley and Los Angeles: University of California Press, 2004], 388 [first edition published in 1983])