U.S. District Judge Amir H. Ali ruled in a lawsuit filed by nonprofit organizations over the cutoff of foreign assistance through the U.S. Agency for International Development and State Department.