New York Attorney General Barbara Underwood on Tuesday criticized the U.S. Supreme Court ruling upholding President Donald Trump’s ban on travel from predominantly Muslim countries.

The ban, which applies to Iran, Libya, Somalia, Syria and Yemen, also applies to North Korea and some Venezuelan officials, is the third attempt by the Trump administration to block travel from counties deemed to be a security risk to the United States.

“​President Trump’s travel bans are a stain on American history that were rooted in deep anti-Muslim animus and unleashed chaos on families, businesses, institutions, and communities throughout New York,” Underwood said. “Despite today’s ruling, New York will continue to serve as a beacon to the world, welcoming people of all faiths, races, nationalities, and backgrounds.”

The New York attorney general’s office had joined efforts to block the ban from taking effect. The 5-4 ruling at the Supreme Court is one of the first major victories in the court for the Trump administration.

“I’m proud of our work to successfully beat back President Trump’s first two discriminatory bans,” Underwood said. “My office won’t hesitate to act to protect New York’s families and ensure that we live up to the values on which this state and this nation were built.”​