French students sang a rap referencing terror attacks during protests, prompting investigations in two separate incidents.