In the hours before the ruling, U.S. Agency for International Development officials at American embassies were pleading with State Department leadership, which now runs USAID, to spare their programs.