The Department of Justice and 16 states have filed a lawsuit against Apple, accusing the company of abusing its power as a monopoly to edge out rivals and ensure customers keep using its products.