Students forced to leave after school becomes migrant shelter