EU lawmakers, member states endorse act aimed at tackling harmful online content