The Union Cabinet headed by Prime Minister Narendra Modi on Wednesday announced an ordinance to penalise persons holding junked Rs 500, 1,000 notes.