A federal appeals court dealt a major blow to California’s gun laws Friday, ruling the state’s open-carry ban in most populated areas violates the Second Amendment.