En føderal appeldomstol har givet våbenejer medhold i, at våbenlov i Californien er i strid med forfatningen.