The Supreme Court has blocked Prime Minister Benjamin Netanyahu's government's attempt to dismiss Shin Bet chief Ronen Bar.