The federal government has finalized a deal that will deliver millions of dollars to a remote Indigenous community in northern Ontario to help tackle a housing crisis that is affecting the health of residents.

Ottawa says the agreement signed Thursday represents an investment of up to $12.8 million in Cat Lake First Nation -- more than the roughly $10 million promised in an interim deal reached last month.

In a statement, Indigenous Services Minister Seamus O'Regan says the government will provide $5 million to build 15 new housing units in Cat Lake and $2.1 million to repair and renovate 21 houses.

The federal government will also put up another $3.1 million for 10 new portable homes and $200,000 for a new temporary warehouse.

Another $2.4 million has been earmarked for "associated costs," such as site surveying and inspections, transporting materials on the winter ice road and hiring various managers to oversee the project and the maintenance of units.

The Cat Lake band declared an emergency in January, saying terrible housing conditions in the community had led to severe lung and skin ailments, especially affecting about 100 children.