Poor countries struggled to get covid vaccines. Now it’s happening with game-changing pills.