that were just ruled unconstitutional?

I read the NYT news alert and what I get is that

one side is saying that tenure is a bad thing because students with bad teachers will always have the bad teachers, and bad teachers are "disproportionately assigned to schools filled with poor students".

other side is saying that tenure laws prevent "unfair personnel decisions".

Please advise? What's the history behind all of this?