The top judge in the United States has given temporary backing to the Trump administration's freeze on foreign aid payments.