Justice Department officials are preparing to file a civil lawsuit against J.P. Morgan Chase & Co. over the bank's handling of residential mortgage-backed securities before the financial crisis, according to people familiar with the matter.

Government lawyers had notified the bank that they planned to file the lawsuit as early as Tuesday, but a flurry of renewed discussions Monday could change that schedule, according to a person...