New York filed a lawsuit against the Trump administration Monday, calling a Department of Homeland Security move to ban New Yorkers from enrolling in Global Entry and other Trusted Traveler Programs "discriminatory," "unlawful" and "unconstitutional."

Driving the news: Acting Homeland Security Secretary Chad Wolf told Fox News last Thursday that the department was blocking New Yorkers from the programs in response to the state passing the "Green Light Law," preventing federal immigration officials from accessing vehicle records without a court order.

The lawsuit calls the ban "political retribution" for New York's law allowing people without legal immigration status to obtain driver's licenses in the state.

What they're saying: New York Attorney General Letitia James, who filed the suit, said at a news conference that President Trump is "punishing New York for passing its own laws" and that the administration's action is a "full-on attack on New York's rights as a sovereign state."

"No one should ever use our nation's security as a political weapon, let alone the commander in chief," she said. "The Trump administration’s new policy not only negatively impacts travelers, workers, commerce and our economy, but it jeopardizes public safety."

The other side: Wolf, who's named in the suit, tweeted Sunday, "This has nothing to do with illegal aliens receiving drivers licenses. NY is the ONLY state to shut off CBP access to DMV records used for law enforcement purposes in our homeland security mission. Without access, CBP cannot vet Trusted Traveler applicants. It’s that simple."

Axios has contacted the Trump administration for further comment.

Read the lawsuit:

Go deeper:

DHS suspends Global Entry enrollment for New Yorkers

Justice Department files new immigration lawsuits against "sanctuary" areas