A union representing 22,000 workers on the US West Coast has filed for Chapter 11 bankruptcy protection as it faces a $19m lawsuit by a terminal operator.

The International Longshore and Warehouse Union (ILWU) filed the petition on Saturday in US bankruptcy court in San Francisco, where the union is headquartered.

The ILWU said in the petition that it only has $11.6m