U.S. President Donald Trump has agreed to dismiss part of his $10 billion defamation suit against the BBC.