New York Gov. Andrew Cuomo signed an executive order Monday banning all non-essential state travel to North Carolina.

The order compels all New York agencies to review any planned trips to the state and cancel any “publicly funded travel that is not essential to the enforcement of state law or public health and safety,” according to a statement from his office.

The ban follows enactment last week of a law in North Carolina that prohibits people from using bathrooms that don’t match their biological sex and bans municipalities from creating their own antidiscrimination policies.

ADVERTISEMENT

The law has been widely condemned by other politicians, media outlets, gay rights advocates and businesses around the country.

The mayor of San Francisco last week announced he is banning city employees from traveling to North Carolina on public business.

The American Civil Liberties Union announced Monday it is filing a federal lawsuit, saying the law is discriminatory to the lesbian, gay, bisexual and transgender community.