The sweeping gun-control law Maryland enacted after the 2012 Sandy Hook Elementary School massacre impermissibly bans firearms that people commonly keep in their homes for self-defense, a lawyer for gun-rights advocates told a federal appeals court Wednesday.