French lawmakers reached a compromise Monday that could allow a bill banning social media for children under 15 to enter into force at the start of the new school year in September.

With Parliament’s summer recess looming, time is running out.

After the European Commission found that the latest version of the bill was not fully compatible with EU law, members of the National Assembly and the Senate held conclusive talks Monday, sealing a deal on an amended bill that will go before both chambers for a final vote on Tuesday.

French President Emmanuel Macron has strongly backed the ban, which could become one of the final major measures adopted under his leadership before he leaves office next year. The bill also bans the use of mobile phones in high schools.

The main point of divergence concerned the scope of the platforms to be banned. The National Assembly had voted to prohibit all online social networking services, whereas the senators wanted to establish a blacklist of platforms covered by the ban.