The European Court of Justice (ECJ) made the decision on the eve of a Dutch election in which Muslim immigration has been a key issue and a bellwether for attitudes to migration and refugee policies across Europe.