SAN FRANCISCO — In the coming days, one of President Obama’s closest labor allies could take the stand in a fierce trial pitting the Service Employees International Union against a rebel breakaway.

But there’s a bit of a backstory between SEIU and the lawyer who would cross-examine SEIU President Andrew Stern.