The deals are part of Eli Lilly’s effort to expand into infectious disease research and development.