Landmark court ruling opens door to non-EU spouses