The prime minister criticised the Tory leader’s ‘petty, personal attack’ and insisted his government was bringing in reforms that would help all pupils