President Trump’s personal attorney, Rudolph W. Giuliani, negotiated earlier this year to represent Ukraine’s top prosecutor for at least $200,000 during the same months that Giuliani was working with the prosecutor to dig up dirt on vice president Joe Biden, according to people familiar with the discussions.