Johnson & Johnson, shareholders near deal on lawsuit over legal issues, recalls