In a case that has drawn interest from a wide range of civil-liberties groups, a federal appeals court ruled Friday that a state inmate can seek punitive damages in a lawsuit that alleged threats by guards at a Northwest Florida prison violated his First Amendment rights.