Civil Rights Act Protects Gay Workers, Appeals Court Rules