A county in Kansas has agreed to pay more than $3 million and apologize for a 2023 raid on a small-town newspaper.