A federal judge in Pennsylvania gave final approval to a $25 million settlement agreement in a drug antitrust class action against Johnson & Johnson.