Both chambers of France's Parliament passed the law, which also bars phone use in high schools and aims to take effect by September.