Nick Gibb says he was warned that algorithm could affect poorer pupils