The measure, which includes such things as steps to keep “harmful” content from minors, comes after President Donald Trump issued an executive order to limit state regulation of the technology.