The Supreme Court has rejected a challenge to a Nebraska city ordinance that bans renting homes to immigrants living in the country illegally.

The justices on Monday let stand an appeals court ruling that found the ordinance doesn't discriminate against Latinos or interfere with federal immigration laws.

The case challenged a 2010 ordinance approved by Fremont, Nebraska, voters requiring potential renters to pay a $5 fee for an occupancy license and show proof of being in the country legally.

Earlier this year, the justices declined attempts by two other towns -- in Pennsylvania and Texas -- to revive similar laws that had been struck down by lower courts.

The high court has held since 2012 that immigration issues are largely a matter for federal agencies, not local governments, to regulate.