By shutting off its free API, the social network will stop researchers from getting access to crucial data to track hate speech and disinformation.