In a blow to campaigners, judges say ministers’ decision to approve the runway was legitimate.