A federal judge agreed that the California law, modeled on the U.K.'s Age Appropriate Design Code, was likely to violate the First Amendment rights of online businesses.