A US appeals court ruled on Friday that California’s ban on openly carrying firearms in most parts of the state was unconstitutional.