Court rules that Trump administration can withhold nearly $10 billion in foreign aid