Libya's new prime minister, Ahmed Maiteeq, won a vote of confidence from parliament on Sunday in defiance of a former general who has challenged the assembly's legitimacy.

Maiteeq, backed by the Muslim Brotherhood, was initially elected two weeks ago after a chaotic parliamentary session that some lawmakers had rejected as illegal.

Libya's legislature is at the center of a growing standoff between a rogue former general, Khalifa Hifter, with a loose alliance of anti-Islamist militias, and pro-Islamist factions positioning for influence in the North African country.