(CNN)President Donald Trump has dismissed as "ridiculous" a federal judge's decision to halt his controversial executive order denying certain refugees and immigrants entry into the United States.
Immigration ban? We were there exactly 100 years ago today
Many Americans are up in arms. But in fact, keeping out desperate souls seeking entry into America has deep roots. On this day 100 years ago, the United States passed the strictest immigration law of its time: the Immigration Act of 1917.
The law restricted the immigration of "undesirables," including many people from the Middle East and Asia, through increased taxes, tests and outright bans.
Trump's ban, which has prompted nationwide protests and widespread condemnation, is eerily similar -- targeting some of the same people and imposing tests in the form of "extreme vetting," according to observers.
"In some ways this is kind of back to the future," said Kevin Johnson, an immigration law expert and dean at the UC Davis School of Law.
The Immigration Act barred an ambiguous and long list of people from entering the country.
According to the law, these included "all idiots, imbeciles, feeble-minded persons, epileptics, insane persons ... persons with chronic alcoholism; paupers, professional beggars," and those with tuberculosis and other contagious diseases. It barred felons, polygamists, prostitutes and their traffickers, and -- similar to Trump's ban -- it blocked entry to those who "advocate the overthrow by force or violence of the Government of the United States, or of all forms of law" and anyone who would "advocate or teach the duty, necessity, or propriety" of killing of US officers or officials.
To keep these people out, the law raised the tax imposed on most adult entrants. It also imposed a literacy test, requiring newcomers older than 16 to demonstrate basic reading comprehension in any language.
Moreover, the law kept out people from what it called the "Asiatic Barred Zone," which included modern day India, Afghanistan, Iran, Saudi Arabia, Russia, Southeast Asia and the Asian-Pacific islands.
China was not included, but the Chinese were already denied immigration visas under the 1882 Chinese Exclusion Act -- which became more discriminatory over the years until it was repealed in 1943 after Beijing became a World War II ally.
Exempt were Japan and the Philippines. The former had voluntarily limited its peoples' immigration to the United States in 1907. The latter was a US colony at the time.
US lawmakers who drafted and passed the immigration law characterized it as necessary for the country's security. With World War I in full swing, the issue of national security was on everyone's mind.
"There was domestic anxiety and uncertainty and frustration and the Soviet Union was being formed," said Johnson, author of "The Huddled Masses Myth: Immigration And Civil Rights."
"There was a Red Scare on the horizon. There were political tensions. There was a concern with widespread immigration."
The State Department's Office of the Historian adds: "The uncertainty generated over national security during World War I made it possible for Congress to pass this legislation."
Domestically, Johnson said the law was fairly popular.
"In 1917, segregation and Jim Crow is alive and well and keeping out Chinese from the country and all Asians seems as normal and natural as apple pie," he said.
The immigration law did not pass unopposed. In fact, it was vetoed by President Woodrow Wilson, but Congress overrode the veto.
Wilson argued that the law contradicted US values and prevented good people from joining American society.
In vetoing an earlier version of the act, Wilson said it would "all but close entirely the gates of asylum which have always been open to those who could find nowhere else the right and opportunity of constitutional agitation for what they conceived to be the natural and inalienable rights of men."
"Restrictions like these, adopted earlier in our history as a Nation, would very materially have altered the course and cooled the humane ardors of our politics," he wrote.
"The right of political asylum has brought to this country many a man of noble character and elevated purpose who was marked as an outlaw in his own less fortunate land, and who has yet become an ornament to our citizenship and to our public councils."
International reaction to the law was also harsh, with many of the named countries condemning the law, Johnson said.
On January 27, Trump signed an executive order that suspended immigration from seven Muslim-majority countries for 90 days, halted the US refugee program for 120 days and indefinitely barred Syrian refugees from entering the United States.
"I hereby proclaim that the entry of nationals of Syria as refugees is detrimental to the interests of the United States and thus suspend any such entry," Trump's order reads. Other countries impacted included Iran, Iraq, Sudan, Libya, Yemen and Somalia.
The order also instituted screening tests on refugees and immigrants to see if they held American values. The President has described the process as "extreme vetting."
"I am establishing new vetting measures to keep radical Islamic terrorists out of the United States of America," Trump said during the signing at the Pentagon. "We don't want them here."
The total number of refugees admitted into the United States was also capped during the 2017 fiscal year at 50,000, down more than half from the current level of 110,000.
The order followed Trump's campaign promise to tighten borders and stop certain refugees from entering the United States.
Although the the Immigration Act of 1917 is more far-reaching than Trump's order, observers say they're similar in at least three ways: First, supporters of both argued the restrictions were necessary for national security. Second, the restrictions imposed a type of test. Third, the bans seemingly discriminate against people based on their national origin.
It's difficult to quantify the impact of immigration bans. When refugees and immigrants are barred from entering countries, persecuted people cannot escape danger and may be harmed or killed, families are separated, opportunities are lost and finances spent on travel are squandered. Host countries may also lose out on labor, knowledge and expertise that could potentially strengthen their societies and economies.
In fact, the Immigration Act of 1917 was challenged by businesses in the Southwest that said literacy tests barred much-needed Mexican laborers from entering the country.
Trump's executive order banning certain immigrants also risked preventing students from finishing academic programs and doctors from returning to their jobs in American hospitals. It also prevented sick people from receiving life-saving treatment.
Iranian infant Fatemeh Reshand, for example, almost missed the opportunity to receive medical treatment for a serious heart defect. It took much lobbying from family members and community leaders to grant her and her parents a medical exemption.
The Immigration Act of 1917 was revised by the Immigration and Nationality Act of 1952, also known as the McCarran-Walter Act. The law abolished racial restrictions but retained quotas for nationalities and regions. It also established a preference system that placed higher value on some nationalities and immigrants with specific labor skills.
As for Trump's executive order on immigration, it was temporarily halted Friday by a federal judge. The Department of Homeland Security then suspended implementation of the order, saying it would resume standard inspections of travelers as it did prior to the ban.
But later Saturday, the Justice Department said it would file an appeal of the judge's order.