A judge found that two private equity funds were liable for the pension fund debt of a company they acquired, a ruling that could affect other firms.