Ethiopia’s parliament passed legislation on Thursday aimed at curbing gun ownership after a surge in regional ethnic violence blamed on a proliferation of small arms in private hands.