Trump fired Yates, a President Obama appointee, after she said she would refuse to defend the administration’s executive order that temporarily bans refugees and immigrants coming from some Muslim-majority countries.