The prime minister said tech firms could do more to protect society.