A U.S. law that treats mothers and fathers differently in determining whether their foreign-born children may claim U.S. citizenship is unconstitutional, a federal appeals court ruled Wednesday, four years after the U.S. Supreme Court split 4-4 on the issue.

The 2nd U.S. Circuit Court of Appeals in New York said the statute applied "impermissible stereotyping" in imposing a tougher burden on fathers.

The law requires unwed fathers who are U.S. citizens to spend at least five years living in the United States — a 2012 amendment reduced it from 10 years — before they can confer citizenship onto a child born abroad, out of wedlock and to a partner who is not a U.S. citizen. For unwed U.S. mothers in the same situation, the requirement is only one year.