Years after a whistleblower flagged a kickback scheme, a Bay State pharmaceutical company has agreed to pay $4.7 million.