Plans for a third runway at Heathrow Airport have been ruled illegal by the court of appeal because ministers did not adequately take into account the government’s commitments to tackle the climate crisis.