New York's governor has ordered federal immigration agents operating in her state not to wear masks, a move likely to be challenged by the Trump administration.