Israel’s supreme court on Wednesday ruled as “unlawful” the government’s decision in March to fire domestic security chief Ronen Bar, a move which had triggered mass protests in the country.