Libya parliament votes for foreign intervention