The shock move from Trump, a longtime New York property developer, drew rebukes from international powers including Russia, China and Germany