The loan agreement will build more than 1 500 units in the country’s third largest city, Malmö, helping it to meet growing demand for housing while reducing emissions.