WASHINGTON — William B. Taylor Jr., the top American diplomat in Ukraine who described for Congress and the public what he saw as President Trump’s efforts to pressure Kyiv to go after a political rival, is expected to leave his post at the end of the year.