Governments in the United States, France and elsewhere have been pressing online firms to do more to curb extremist content, especially videos that depict beheadings and other gruesome acts often used in recruitment efforts.