Medications once used to treat illness are increasingly being taken for prevention. Experts explain what’s behind the shift—and what the science actually supports.