Bayada Home Health Care has agreed to pay $13.5 million to resolve a long-running class action alleging the company failed to compensate its nurses for off-the-clock work.

The parties informed the court of the settlement Tuesday, just as the case was poised to go before a Philadelphia jury.