British Airways has signed a deal to buy more than £9 million in carbon removal credits in both the UK and overseas as part of a six-year agreement.