Appeals court rules against California law requiring background checks for ammunition