An initial volley in a potential barrage of legal challenges to President Donald Trump's new restrictions on immigration came on Saturday on behalf of two Iraqis with ties to U.S. security forces who were detained at New York's JFK Airport.

In a lawsuit filed in federal court in Brooklyn, New York, the men are challenging the directive on constitutional grounds. The suit says their connections to the American forces made them targets in their home country and the pair had valid visas to enter the United States.

The lawsuit, which seeks to block Trump's order on behalf of a class of visa-holders and asylum-seekers, highlights some of the legal obstacles facing the new administration as it tries to carry out the directive.