From what I've gathered watching Youtube legal videos, Qualified Immunity doesn't apply when the government officials have been explicitly told by a court that their specific behavior is a violation of a right. With this temporary injunction they have so been told.