Libya warns of looming 'civil war' as UN passes resolution to tackle the crisis