The 2-1 decision by a panel of the 11th U.S. Circuit Court of Appeals was a victory for the National Rifle Association and other gun-rights advocates and a defeat for medical groups that argued, at least in part, that the law infringed on doctors’ First Amendment rights.