The European Court of Justice on Thursday upheld a Spanish judge's refusal to let a Moroccan man bring his wife to join him because he had failed to show he would earn enough to support them both. The ruling is in line with others in the past two years in restricting migrants' rights. The Court of Justice said the Spanish ruling was consistent with an EU law that gives long-term, non-EU residents an entitlement to "family reunification" because the directive allows member states to demand proof that the sponsor has the means to support a family.