Walgreens is expanding its use of robotic technology to automate prescription filling as part of its broader turnaround strategy.