A judge criticises the awarding of work to a firm run by former colleagues of Michael Gove and Dominic Cummings.