A unit of Johnson & Johnson has been ordered to pay around $40 million in legal costs to the lead applicants in a class action over pelvic mesh implants after a judge dismissed the company’s bid to stay the costs until after a high profile appeal is heard next year.