California legislators passed a bill late Monday that would ban social media companies from providing users under the age of 16 with “addictive” features, a week after Meta opted to pay $18 billion to settle a lawsuit in the state alleging it harmed teens.