Biden’s departing UN envoy says US rivals will fill the vacuum if Trump abandons global leadership