The NAHT wants a judge to review proposed changes to the way Ofsted inspects schools in England.