On Tuesday, San Francisco took legal action against President Donald Trump's executive order to withhold federal money from so-called sanctuary cities that "limit cooperation with federal immigration enforcement agencies."