Federal appeals court declares anti-gay marriage law unconstitutional