Johnson & Johnson’s plan to settle thousands of talc-related lawsuits through bankruptcy was shot down in court.