Dido Harding and Mike Coupe appointments were unlawful, High Court rules