Johnson & Johnson announced on Tuesday that it had agreed to pay $8.9 billion to tens of thousands of people who claimed the company’s talcum powder products caused cancer, a proposal that plaintiffs’ lawyers called a “significant victory” in a decade-long legal battle.