The European Commission will propose legislation this month requiring Google, Facebook, Twitter and other internet companies to remove extremist content and cooperate with law enforcement authorities.