SAN FRANCISCO — A California appeals court on Tuesday ruled that cable news broadcaster CNN Inc. cannot fend off an employment discrimination lawsuit brought by a former producer by invoking the state’s anti-SLAPP statute.

In a 2-1 decision, the Second District Court of Appeal held that the statute—which shields First Amendment activity against abusive lawsuits—has a limited application to litigation challenging the hiring and firing decisions of media organizations.