One of Justice Antonin Scalia’s last official acts before his death last February was to join Justice Clarence Thomas in complaining that the Supreme Court risked “relegating the Second Amendment to a second-class right” when it let stand an Illinois city’s ban on owning semiautomatic weapons.