The bitter pills given to Troy help erase the past, although their effects take time.
Troy is given bitter pills that help erase the past. Their effects are gradual rather than immediate.
The pills serve as medicine that helps erase the past.