Amazon and Expedia have joined a legal challenge to President Trump's travel ban.

The companies argue it will hurt their employees and their business. They filed motions in a federal lawsuit brought Monday by Washington State Attorney General Bob Ferguson. Both companies are based in Washington.

Amazon says it has 49 employees born in the seven Muslim-majority countries included in the ban who are legally working for the company in the United States or elsewhere. Amazon says their work and travel could be disrupted.

The Amazon motion refers to an unnamed Libyan-born senior Amazon lawyer who has been a British citizen for many years.

"This employee had plans to travel to the United States for business during the month of February. We have instructed the employee to cancel her plans and remain in the UK rather than risk being denied entry to the United States," the motion says.

Related: Companies executives speak out on Trump's travel ban

Amazon also says it has offered jobs to seven Iranian-born candidates who are citizens of other countries, as well as 10 employees who have dependents from the seven countries who are living legally in the United States.

It also brings up the case of Iranian filmmaker Asghar Farhadi, who will not be able to attend the Academy Awards ceremony, even though his film, which is distributed by Amazon Studios, is nominated for an Oscar.

Expedia's motion describes potential damage to its travel business. At least 1,000 of its customers hold passports from the seven countries, the company says. It also mentions employees whose travel could be restricted.

Expedia (EXPE) CEO Dara Khosrowshahi was once an Iranian refugee whose family came to the United States after the Iranian Revolution in 1978. He wrote a long message to his employees decrying the ban.

Amazon CEO Jeff Bezos has been a frequent Trump critic and owns The Washington Post. Trump in threatened during the campaign to cause big problems for Amazon (AMZN) if he was elected. He has yet to announce any action.

Related: Trump's immigration reform - High-skilled visas may be next

The Washington State lawsuit says Trump's ban violates the First Amendment guarantee of freedom of religion and the Fifth Amendment guarantee of due process.

Washington State University also filed in support of the suit, detailing problems that the ban is causing its students and faculty.