AT&T took a $4.4 billion goodwill impairment charge related to its business-wireline unit, which is under pressure as business customers cut back on legacy voice services.