An Arkansas law requiring social media companies to verify the ages of their users has been permanently blocked by a federal judge who ruled that it was unconstitutional.