A federal appeals court has ruled that a long-standing federal prohibition on distilling alcohol at home is unconstitutional.