AT&T said Wednesday that it plans to buy the CenturyLink fiber-optic business that provides high-speed internet services to homes in 11 states, including thousands of customers in the Portland area.