A Texas anti-pornography law is going before the Supreme Court on Wednesday in a collision of free speech rights, regulation of online content and the protection of children.