PORTLAND (AP) — A housing compromise is expected to allow some rent hikes for a Northeast Portland affordable housing complex.

The compromise ends a long-running legal fight over affordable housing in Portland and includes a promise to pay low-income renters $7,500 if they are evicted.

Lawyers on both sides have praised the deal, which secures the fate of the 264-unit apartment complex designated for low-income renters.

The settlement locks in cheap rents for 30 years for 44 units. But it allows the owners, led by Guardian Real Estate Services, to eventually kick out low-income tenants and rent remaining units at market rates.

“We both figured that this was a win-win deal,” Guardian’s attorney, John DiLorenzo, said Wednesday.