Social media giants such as Facebook and Twitter would be required to remove any hateful content within 24 hours under a draft bill approved by France’s National Assembly on Friday.