The Republican-led state had banned social media companies from censoring users based on their “views”.