The European Parliament has voted to counter the influence of the Muslim Brotherhood in a move criticised as Islamophobic by leftwing opponents.