Swiss voters agreed by a nearly two-to-one margin on Sunday to adopt tighter gun controls in line with changes to European Union rules, heading off a clash with Brussels.