The vote follows similar bans and proposals by other countries to limit the harms of internet use among young people.