An Illinois car dealership has agreed to pay up to $US6.5 million to settle a class-action lawsuit over its unsolicited "junk fax" advertisements, which are barred by federal law, a lawyer told Associated Press (AP).