Ruling is a blow to Interior Minister Shaked, whose policy only allowed 5,000 non-Jewish refugees into country