A High Court judge criticises awarding a £560,000 contract to a company run by Dominic Cummings’s friends.