Appeals court deals blow to Maryland gun control law