Toyota has filed a lawsuit with a US court for damages against General Motors' bankruptcy estate over the closure of their joint manufacturing plant in California.