A prominent law firm targeted by President Donald Trump sued on Friday to block an executive order that threatens its federal contracts and the security clearances of its employees.