Apple could join Amazon and Expedia in taking legal action against Donald Trump’s executive order banning individuals from seven Muslim countries.