High court’s ruling clears the way for nearly $2 billion in foreign aid funding to be released