An agreement has been reached to end a contempt proceeding against the Los Angeles City in a federal lawsuit over homelessness.