Diplomats spent weeks trying to persuade the Ukrainian government to commit to announcing it would open investigations that would help President Trump politically