foreign affairs function — Legal Definition, Examples & Cases