The lawsuit, brought by the US Justice Department and multiple states, accuses the tech giant of making it hard for consumers to switch to cheaper smartphones.