From cutting drug costs to reducing overdose deaths, the outgoing president has improved the nation’s health.