The BBC has signed the biggest ever deal to sell its programmes, agreeing to provide its landmark natural history shows to a new global streaming service run by the Discovery Channel for £300m.