An appeals court ruled Thursday that the Defense of Marriage Act, which denies several federal benefits to gay married couples, is unconstitutional.