A U.S. appeals court ruled that California's ban on openly carrying firearms in most parts of the state was unconstitutional.