Federal appeals court rules in favor of Texas law on social media regulation