The BBC will fight to have Donald Trump's $10billion lawsuit over the editing of a speech in a Panorama programme thrown out, court documents show.