The Ukrainian parliament on Wednesday in a dramatic late night session adopted a law that would grant amnesty to protesters arrested during the country's crisis, but the opposition refused to vote.