A deputy at the UN refugee agency has been sidelined due to a standoff with the Trump administration, reflecting tensions over refugee policy and international cooperation.