This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A unanimous Supreme Court ruled Monday that thousands of people living in the U.S. for humanitarian reasons are ineligible to apply to become permanent residents.

Justice Elena Kagan wrote for the court that federal immigration law prohibits people who entered the country illegally and now have Temporary Protected Status from seeking “green cards” to remain in the country permanently.

The designation applies to people who come from countries ravaged by war or disaster. It protects them from deportation and allows them to work legally. There are 400,000 people from 12 countries with TPS status.

The outcome in a case involving a couple from El Salvador who have been in the U.S. since the 1990s turned on whether people who entered the country illegally and were given humanitarian protections were ever “admitted” into the United States under immigration law.

Kagan wrote that they were not. “The TPS program gives foreign nationals nonimmigrant status, but it does not admit them. So the conferral of TPS does not make an unlawful entrant…eligible” for a green card, she wrote.

The House of Representatives already has passed legislation that would make it possible for TPS recipients to become permanent residents, Kagan noted. The bill faces uncertain prospects in the Senate.

President Joe Biden has said he supports the change in the law. But his administration, like the Trump administration, argued that current immigration law doesn’t permit people who entered the country illegally to apply for permanent residency.

On the other side were immigrant groups that argued many people who came to the U.S. for humanitarian reasons have lived in the country for many years, given birth to American citizens and put down roots in the U.S.

Federal courts around the country had come to conflicting decisions about whether the grant of TPS status was, by itself, enough to enable an immigrant to try to obtain permanent residency.

Former President Donald Trump tried to cancel the program for many immigrants, stoking fear they could be sent back to their homelands where they haven’t lived in many years.

“All of these families that are established in the United States and have lived in our communities for decades faced a very real threat,” said Lisa Koop, a lawyer with the National Immigrant Justice Center who also teaches at Notre Dame’s law school.

In 2001, the U.S. gave Salvadoran migrants legal protection to remain in the U.S. after a series of earthquakes in their home country.

People from 11 other countries are similarly protected. They are: Haiti, Honduras, Myanmar, Nepal, Nicaragua, Somalia, South Sudan, Sudan, Syria, Venezuela and Yemen.

Monday’s decision does not affect immigrants with TPS who initially entered the U.S. legally and then, say, overstayed their visa, Kagan noted. Because those people were legally admitted to the country and later were given humanitarian protections, they can seek to become permanent residents.

Also on Monday, the court:

— Declined to hear a challenge to the requirement that only men register for the draft when they turn 18.

— Agreed to hear a case in which the Biden administration wants to halt a lawsuit over FBI surveillance of Muslims in California because it could reveal “state secrets.”

— Turned away an appeal questioning the federal Food and Drug Administration’s authority to regulate electronic cigarettes.