The home affairs minister’s decision was unconstitutional and procedurally unfair, the Pretoria high court found