Ruling comes as government says it will reunite only half of migrant children under five by Tuesday deadline.