A unanimous California Supreme Court ruled Thursday that the University of California and its affiliates can’t be sued for damages by whistleblowing employees if complaints of retaliation have been addressed internally in a reasonable period of time.

But three of the justices figuratively held their noses, arguing that the ruling will “strongly undermine” the California Whistleblower Protection Act and give thousands of UC employees little reason to come forward about misdeeds.