This case plays out against the backdrop created by last year 's Supreme Court ruling in a case called D.C. v. Heller , which said the Second Amendment protects an individual right and prevents the federal government and federal enclaves like the District of Columbia from banning handguns .