Education secretary reminded families of their ‘legal obligations’