Costco agrees to pay $12M to resolve federal painkiller investigation