Homeland Security personnel keep watch as travelers depart at Lindbergh Field airport in San Diego, California, U.S. July 1, 2016. REUTERS/Mike Blake

WASHINGTON (Reuters) - The Department of Homeland Security will stop flagging travelers from certain countries targeted by an executive order from President Donald Trump, a spokeswoman said on Saturday, in order to comply with a federal court ruling.

The Justice Department intends to file an emergency stay of the order at the earliest possible time, the Department of Homeland Security spokeswoman said.