Prime Minister Mykola Azarov’s resignation came as Ukraine’s parliament voted to repeal anti-protest measures that it had passed just a few weeks back.