Executive Gobbles up Judiciary

Why did the President, against every accepted norm of morality, appoint Sarath N. Silva to the vacant post of Chief Justice at a time when very serious allegations against him were being inquired into before the Supreme Court? And how will that act work on society and on politics?