Under bill, platforms like Instagram and X would be given one year to find ways of restricting access to minors.