Somali lawmakers voted unanimously on Saturday to cancel a two-year presidential term extension they had approved last month, after clashes in the capital Mogadishu between factions of the security forces, which are divided over the issue.