Judges said the decision was a ‘close’ call