MOSCOW — Prime Minister Vladimir V. Putin on Wednesday became the first Russian or Soviet leader to join Polish officials in commemorating the anniversary of the murder of thousands of Polish officers by the Soviet Union at the beginning of World War II.