(Bloomberg) — A new U.S. Department of Homeland Security rule to screen out immigrants deemed at risk of becoming dependent on government benefits was put on hold by judges on both coasts until there’s a final decision on whether the so-called green card wealth test is legal.U.S. District Judge George Daniels in Manhattan called the rule “repugnant to the American Dream of the opportunity for prosperity and success through hard work and upward mobility.” In a decision issued Friday, he blocked it from taking effect nationwide. Separately, a judge in Oakland, California, prohibited the policy from being implemented in four states and the District of Columbia.The rule — which was announced in August and was set to go into effect Oct. 15 — replaces a current policy that says immigrants shouldn’t receive more than half their income from cash benefits, such as Temporary Assistance for Needy Families or Supplemental Security Income from Social Security.Under the new more expansive definition, immigrants aren’t supposed to use public benefits like Medicaid, public housing assistance or food stamps for more than 12 months over a 36-month period. Immigration officials will consider an immigrant’s age, health, education and wealth to see if they are at risk of becoming a “public charge.”Asked about the ruling by reporters Friday, Trump cited a Supreme Court ruling last year upholding the final version of his travel ban and pointed to his success appointing judges to the courts.Read About Another Judge’s Ruling This Week Calling Trump’s Position ‘Repugnant’“We lost on immigration? I haven’t heard that,” the president said. “We’ll win. You know how many cases I’ve lost and then we win? Remember, they said — I lost the ban, the travel ban. And then they said I lost it again, then I ended up winning it. So I’ve had a great track record and right now, within a couple of weeks, we will have 160 judges.”White House press secretary Stephanie Grisham, in a statement, called the ruling “extremely disappointing” and said it will prevent the government officials “from ensuring that immigrants seeking entry to the United States will be self-sufficient.” Instead, it will “allow non-citizens to continue taking advantage of our generous but limited public resources reserved for vulnerable Americans,” she said. Immigrant rights advocacy groups and several states argued that the new immigration rule conflicts with existing immigration laws and would drive up the cost of providing health care and other services to immigrants.Daniels blocked the rule following an August lawsuit filed by New York, Connecticut and Vermont and the city of New York, which alleged that the policy specifically targets immigrants of color. He ruled that the Department of Homeland Security went beyond its authority under federal immigration law.“Defendants do not articulate why they are changing the public charge definition, why this new definition is needed now, or why the definition set forth in the rule — which has absolutely no support in the history of U.S. Immigration law — is reasonable,” Daniels said.“This rule would have had devastating impacts on New Yorkers and our nation, and today’s decision is a critical step in our efforts to uphold the rule of law,” New York Attorney General Letitia James tweeted Friday.The New York case is State of New York v. U.S. Department of Homeland Security, 19-cv-07777, U.S. District Court, Southern District of New York (Manhattan). The California case is City and County of San Francisco v. Department of Homeland Security, 3:19-cv-4717, U.S. District Court, Northern District of California (Oakland).(Updates with press secretary comment)–With assistance from Justin Sink.To contact the reporters on this story: Chris Dolmetsch in Federal Court in Manhattan at firstname.lastname@example.org;Edvard Pettersson in Los Angeles at email@example.comTo contact the editors responsible for this story: David Glovin at firstname.lastname@example.org, Peter Blumberg, Peter JeffreyFor more articles like this, please visit us at bloomberg.com©2019 Bloomberg L.P.